Changeset d54b303 in mainline for uspace/lib/c/generic/libc.c


Ignore:
Timestamp:
2012-12-04T05:18:19Z (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:
32d2e60
Parents:
9a3b469
Message:

Initial version of nop futexes that are upgradable to proper futexes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    r9a3b469 rd54b303  
    5151#include "private/malloc.h"
    5252#include "private/io.h"
    53 #include "private/thread.h"
     53
     54#ifdef FUTEX_UPGRADABLE
     55#include <rcu.h>
     56#endif
    5457
    5558#ifdef CONFIG_RTLD
    5659#include <rtld/rtld.h>
    5760#endif
     61
    5862
    5963static bool env_setup = false;
     
    6367        /* Initialize user task run-time environment */
    6468        __malloc_init();
    65         __async_init();
    6669       
    6770        fibril_t *fibril = fibril_setup();
     
    7477        __pcb = (pcb_t *) pcb_ptr;
    7578       
    76         atomic_inc(&_created_thread_cnt);
     79#ifdef FUTEX_UPGRADABLE
     80        rcu_register_fibril();
     81#endif
     82       
     83        __async_init();
    7784       
    7885        /* The basic run-time environment is setup */
Note: See TracChangeset for help on using the changeset viewer.