Module rs_lockfree::util [−][src]
Utility of project
Structs
WrappedAlign64Type |
Wrap struct into WrappedAlign64Type to make it 64bytes aligned. |
Statics
GLOBAL_THREAD_ID |
Auto increase global thread id. |
Functions
atomic_cxchg_raw_ptr⚠ |
Atomic CAS raw pointer. |
atomic_load_raw_ptr⚠ |
Atomic load raw pointer. |
get_cur_microseconds_time |
Return current unix timestamp(microsecond). |
get_thread_id |
Return an unique ID for current thread. |
pause |
Yield current thread. |
sync_add_and_fetch⚠ |
Like __sync_add_and_fetch in C. |
sync_fetch_and_add⚠ |
Like __sync_fetch_and_add in C. |