Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9e889f6 in mainline for uspace/lib/c/generic/thread/futex.c


Ignore:
Timestamp:
2018-11-11T15:46:26Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
0b5203b
Parents:
d314571
git-author:
Jakub Jermar <jakub@…> (2018-11-10 14:53:45)
git-committer:
Jakub Jermar <jakub@…> (2018-11-11 15:46:26)
Message:

Switch userspace futexes to using waitq kobjects

This replaces futexes entirely when they are not shared across address
spaces.

File:
1 edited

Legend:

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

    rd314571 r9e889f6  
    5353{
    5454        atomic_store_explicit(&futex->val, val, memory_order_relaxed);
     55        atomic_store_explicit(&futex->alloc_lock, 0, memory_order_relaxed);
     56        futex->whandle = CAP_NIL;
    5557}
    5658
Note: See TracChangeset for help on using the changeset viewer.