Changeset 1b7eec9 in mainline for uspace/lib/urcu/rcu.h


Ignore:
Timestamp:
2012-12-04T03:48:21Z (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:
9a3b469
Parents:
cb10bc9
Message:

urcu: rcu_synchronize allows to specify if it may block the current fibril or rather the current thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/urcu/rcu.h

    rcb10bc9 r1b7eec9  
    9292#define rcu_access(ptr) ACCESS_ONCE(ptr)
    9393
     94typedef enum blocking_mode {
     95        BM_BLOCK_FIBRIL,
     96        BM_BLOCK_THREAD
     97} blocking_mode_t;
    9498
    9599extern void rcu_register_fibril(void);
     
    101105extern bool rcu_read_locked(void);
    102106
    103 extern void rcu_synchronize(void);
     107#define rcu_synchronize() _rcu_synchronize(BM_BLOCK_FIBRIL)
     108
     109extern void _rcu_synchronize(blocking_mode_t);
    104110
    105111#endif
Note: See TracChangeset for help on using the changeset viewer.