Changeset 4ec9ea41 in mainline for kernel/generic/include/synch/rcu.h


Ignore:
Timestamp:
2012-07-27T13:37:31Z (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:
14c9aa6
Parents:
2bcf6c6
Message:

rcu: Added rcu_barrier() that waits for all outstanding rcu_calls to complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/synch/rcu.h

    r2bcf6c6 r4ec9ea41  
    111111        bool expedite_arriving;
    112112       
     113        /** Protected by global rcu.barrier_mtx. */
     114        rcu_item_t barrier_item;
     115       
    113116        /** Interruptable attached reclaimer thread. */
    114117        struct thread *reclaimer_thr;
     
    202205extern bool rcu_read_locked(void);
    203206extern void rcu_synchronize(void);
     207extern void rcu_synchronize_expedite(void);
    204208extern void rcu_call(rcu_item_t *rcu_item, rcu_func_t func);
     209extern void rcu_barrier(void);
    205210
    206211extern void rcu_print_stat(void);
     
    215220extern void rcu_before_thread_runs(void);
    216221
    217 /* Debugging/testing support. Not part of public API. Do not use! */
    218222extern uint64_t rcu_completed_gps(void);
    219223extern void _rcu_call(bool expedite, rcu_item_t *rcu_item, rcu_func_t func);
     224extern void _rcu_synchronize(bool expedite);
    220225
    221226#endif
Note: See TracChangeset for help on using the changeset viewer.