Changeset af5dfa5b in mainline for uspace/lib/c/generic/thread.c


Ignore:
Timestamp:
2012-12-04T17:59:59Z (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:
7554e41
Parents:
52d2603
Message:

Turned malloc's futex semaphore into a lock upgradable from a light weight single threaded version to a thread safe version.

File:
1 edited

Legend:

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

    r52d2603 raf5dfa5b  
    122122        }
    123123       
     124        /* Make heap thread safe. */
     125        malloc_enable_multithreaded();
     126       
    124127        uarg->uspace_entry = (void *) FADDR(__thread_entry);
    125128        uarg->uspace_stack = stack;
Note: See TracChangeset for help on using the changeset viewer.