mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
list: remote LIST_INIT() macro
This commit is contained in:
parent
890c761f22
commit
550a2cc2ce
1 changed files with 0 additions and 8 deletions
|
@ -41,14 +41,6 @@ extern "C" {
|
|||
#define LIST_CHUNKSIZE 16
|
||||
|
||||
/** Static list initialization */
|
||||
#define LIST_INIT() { \
|
||||
.array = NULL, \
|
||||
.length = 0, \
|
||||
.capacity = 0, \
|
||||
.lock = PTHREAD_MUTEX_INITIALIZER, \
|
||||
.state = STATE_INITIALIZED \
|
||||
}
|
||||
|
||||
#define LIST_INIT_STATIC(l) \
|
||||
__attribute__((constructor(105))) static void UNIQUE(__ctor)() {\
|
||||
if ((l)->state == STATE_DESTROYED) \
|
||||
|
|
Loading…
Add table
Reference in a new issue