Changeset d5a89a3 in mainline for uspace/lib/c/include/fibril_synch.h


Ignore:
Timestamp:
2019-02-11T22:31:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
aaf9789c
Parents:
e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merging with upstream/master

File:
1 edited

Legend:

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

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_FIBRIL_SYNCH_H_
    36 #define LIBC_FIBRIL_SYNCH_H_
     35#ifndef _LIBC_FIBRIL_SYNCH_H_
     36#define _LIBC_FIBRIL_SYNCH_H_
    3737
    3838#include <fibril.h>
    3939#include <adt/list.h>
    40 #include <tls.h>
    4140#include <time.h>
    4241#include <stdbool.h>
     
    5453                }, \
    5554                .counter = 1, \
    56                 .waiters = { \
    57                         .head = { \
    58                                 .prev = &(name).waiters.head, \
    59                                 .next = &(name).waiters.head, \
    60                         } \
    61                 } \
     55                .waiters = LIST_INITIALIZER((name).waiters), \
    6256        }
    6357
     
    7973                .readers = 0, \
    8074                .writers = 0, \
    81                 .waiters = { \
    82                         .head = { \
    83                                 .prev = &(name).waiters.head, \
    84                                 .next = &(name).waiters.head, \
    85                         } \
    86                 } \
     75                .waiters = LIST_INITIALIZER((name).waiters), \
    8776        }
    8877
     
    9685#define FIBRIL_CONDVAR_INITIALIZER(name) \
    9786        { \
    98                 .waiters = { \
    99                         .head = { \
    100                                 .next = &(name).waiters.head, \
    101                                 .prev = &(name).waiters.head, \
    102                         } \
    103                 } \
     87                .waiters = LIST_INITIALIZER((name).waiters), \
    10488        }
    10589
     
    153137        { \
    154138                .count = (cnt), \
    155                 .waiters = { \
    156                         .head = { \
    157                                 .next = &(name).waiters.head, \
    158                                 .prev = &(name).waiters.head, \
    159                         } \
    160                 } \
     139                .waiters = LIST_INITIALIZER((name).waiters), \
    161140        }
    162141
Note: See TracChangeset for help on using the changeset viewer.