Changeset 3679f51a in mainline for uspace/lib/c/generic/thread.c


Ignore:
Timestamp:
2018-06-25T20:41:09Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95838f1
Parents:
d73d992
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 20:30:35)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 20:41:09)
Message:

Remove the option of RCU-upgradable futexes for now.
They complicate threading design too much.

File:
1 edited

Legend:

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

    rd73d992 r3679f51a  
    4848#include "private/fibril.h"
    4949
    50 #ifdef FUTEX_UPGRADABLE
    51 #include <rcu.h>
    52 #endif
    53 
    54 
    5550/** Main thread function.
    5651 *
     
    6964
    7065        __tcb_set(fibril->tcb);
    71 
    72 #ifdef FUTEX_UPGRADABLE
    73         rcu_register_fibril();
    74         futex_upgrade_all_and_wait();
    75 #endif
    7666
    7767        uarg->uspace_thread_function(uarg->uspace_thread_arg);
     
    8575        /* If there is a manager, destroy it */
    8676        async_destroy_manager();
    87 
    88 #ifdef FUTEX_UPGRADABLE
    89         rcu_deregister_fibril();
    90 #endif
    9177
    9278        fibril_teardown(fibril, false);
Note: See TracChangeset for help on using the changeset viewer.