Changeset 9a3b469 in mainline for uspace/lib/c/generic/libc.c


Ignore:
Timestamp:
2012-12-04T04:09:08Z (12 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d54b303
Parents:
1b7eec9
Message:

malloc avoids using futexes during initialization of the main thread of a program.

File:
1 edited

Legend:

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

    r1b7eec9 r9a3b469  
    5151#include "private/malloc.h"
    5252#include "private/io.h"
     53#include "private/thread.h"
    5354
    5455#ifdef CONFIG_RTLD
     
    7273        /* Save the PCB pointer */
    7374        __pcb = (pcb_t *) pcb_ptr;
     75       
     76        atomic_inc(&_created_thread_cnt);
    7477       
    7578        /* The basic run-time environment is setup */
Note: See TracChangeset for help on using the changeset viewer.