Changeset 45c8eea in mainline for uspace/lib/c/generic/thread/fibril_synch.c
- Timestamp:
- 2018-11-11T15:47:39Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4cb6c5f
- Parents:
- 269bc459
- git-author:
- Jakub Jermar <jakub@…> (2018-11-10 17:49:44)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-11 15:47:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/thread/fibril_synch.c
r269bc459 r45c8eea 51 51 #include "../private/futex.h" 52 52 53 voidfibril_rmutex_initialize(fibril_rmutex_t *m)54 { 55 futex_initialize(&m->futex, 1);53 errno_t fibril_rmutex_initialize(fibril_rmutex_t *m) 54 { 55 return futex_initialize(&m->futex, 1); 56 56 } 57 57 … … 90 90 static fibril_local bool deadlocked = false; 91 91 92 static futex_t fibril_synch_futex = FUTEX_INITIALIZER; 92 static futex_t fibril_synch_futex; 93 94 void __fibril_synch_init(void) 95 { 96 if (futex_initialize(&fibril_synch_futex, 1) != EOK) 97 abort(); 98 } 93 99 94 100 typedef struct {
Note:
See TracChangeset
for help on using the changeset viewer.