Changeset 927a181e in mainline for uspace/lib/c/include/futex.h


Ignore:
Timestamp:
2012-12-04T02:17:04Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb10bc9
Parents:
21b703f
Message:

Turned futex_t in uspace into an opaque type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/futex.h

    r21b703f r927a181e  
    3939#include <sys/types.h>
    4040
    41 #define FUTEX_INITIALIZER  {1}
     41#define FUTEX_INITIALIZER  {{1}}
    4242
    43 typedef atomic_t futex_t;
     43typedef struct futex {
     44        atomic_t val;
     45} futex_t;
    4446
    4547extern void futex_initialize(futex_t *futex, int value);
Note: See TracChangeset for help on using the changeset viewer.