Changeset 45c8eea in mainline for uspace/lib/c/generic/thread/futex.c
- Timestamp:
 - 2018-11-11T15:47:39Z (7 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
 
- 
          
  uspace/lib/c/generic/thread/futex.c (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/lib/c/generic/thread/futex.c
r269bc459 r45c8eea 49 49 * @param val Initialization value. 50 50 * 51 * @return Error code. 51 52 */ 52 voidfutex_initialize(futex_t *futex, int val)53 errno_t futex_initialize(futex_t *futex, int val) 53 54 { 54 55 atomic_store_explicit(&futex->val, val, memory_order_relaxed); 55 atomic_store_explicit(&futex->lock, 0, memory_order_relaxed);56 56 futex->whandle = CAP_NIL; 57 return futex_allocate_waitq(futex); 57 58 } 58 59  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  