Changeset 7dd2561 in mainline for generic/src/proc/thread.c


Ignore:
Timestamp:
2005-12-15T15:24:52Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80d2bdb
Parents:
dc747e3
Message:

Add LIST_INITIALIZE() macro to declare and initialize statically allocated lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/thread.c

    rdc747e3 r7dd2561  
    5656
    5757SPINLOCK_INITIALIZE(threads_lock);      /**< Lock protecting threads_head list. For locking rules, see declaration thereof. */
    58 link_t threads_head;                    /**< List of all threads. */
     58LIST_INITIALIZE(threads_head);          /**< List of all threads. */
    5959
    6060SPINLOCK_INITIALIZE(tidlock);
     
    9797        THREAD = NULL;
    9898        nrdy = 0;
    99         list_initialize(&threads_head);
    10099}
    101100
Note: See TracChangeset for help on using the changeset viewer.