|
BIRNET Interface Reference
/opt/src/beast/birnet/birnetthread.hh
SYNOPSIS
| class
| Birnet::Atomic::RingBuffer; |
| class
| Birnet::AutoLocker; |
| class
| Birnet::AutoLocker::Locker; |
| class
| Birnet::AutoLocker::LockerImpl; |
| class
| Birnet::Cond; |
| class
| Birnet::Mutex; |
| class
| Birnet::OwnedMutex; |
| class
| Birnet::RecMutex; |
| class
| Birnet::Thread; |
| class
| Birnet::Thread::Self; |
| |
| void
| full_barrier
| (); |
| void
| int_add
| (iptr, diff); |
| bool
| int_cas
| (iptr, o, n); |
| int
| int_get
| (iptr); |
| void
| int_set
| (iptr, value); |
| int
| int_swap_add
| (iptr, diff); |
| bool
| ptr_cas
| (ptr_adr, o, n); |
| V*
| ptr_get
| (ptr_addr); |
| V*
| ptr_get
| (ptr_addr); |
| void
| ptr_set
| (ptr_addr, n); |
| void
| read_barrier
| (); |
| void
| uint_add
| (uptr, diff); |
| bool
| uint_cas
| (uptr, o, n); |
| uint
| uint_get
| (uptr); |
| void
| uint_set
| (uptr, value); |
| uint
| uint_swap_add
| (uptr, diff); |
| void
| write_barrier
| (); |
DESCRIPTION
Birnet::Atomic::RingBuffer | | /opt/src/beast/birnet/birnetthread.hh:216 |
Birnet::AutoLocker | | /opt/src/beast/birnet/birnetthread.hh:171 |
The AutoLocker class locks mutex like objects on construction, and automatically
unlocks on destruction. So putting an AutoLocker object on the stack conveniently
ensures that a mutex will be automatically locked and properly unlocked when
the function returns or throws an exception.
Objects intended to be used by an AutoLocker need to provide the public methods
lock() and unlock().
Birnet::AutoLocker::Locker | | /opt/src/beast/birnet/birnetthread.hh:172 |
Birnet::AutoLocker::LockerImpl | | /opt/src/beast/birnet/birnetthread.hh:180 |
Birnet::Cond | | /opt/src/beast/birnet/birnetthread.hh:49 |
Birnet::Mutex | | /opt/src/beast/birnet/birnetthread.hh:26 |
Birnet::OwnedMutex | | /opt/src/beast/birnet/birnetthread.hh:89 |
Birnet::RecMutex | | /opt/src/beast/birnet/birnetthread.hh:38 |
Birnet::Thread | | /opt/src/beast/birnet/birnetthread.hh:103 |
Birnet::Thread::Self | | /opt/src/beast/birnet/birnetthread.hh:125 |
|
|
This is a wrapper for birnet_thread_sleep().
| max_useconds: | | maximum amount of micro seconds to sleep (-1 for infinite time)
|
| returns: | | TRUE while the thread should continue execution |
|
|
full_barrier | | /opt/src/beast/birnet/birnetthread.hh:65 |
int_add | | /opt/src/beast/birnet/birnetthread.hh:70 |
int_cas | | /opt/src/beast/birnet/birnetthread.hh:69 |
int_get | | /opt/src/beast/birnet/birnetthread.hh:68 |
int_set | | /opt/src/beast/birnet/birnetthread.hh:67 |
int_swap_add | | /opt/src/beast/birnet/birnetthread.hh:71 |
ptr_cas | | /opt/src/beast/birnet/birnetthread.hh:86 |
| bool
| ptr_cas
| (V*volatile *ptr_adr,
V *o,
V *n); |
ptr_get | | /opt/src/beast/birnet/birnetthread.hh:82 |
ptr_get | | /opt/src/beast/birnet/birnetthread.hh:84 |
ptr_set | | /opt/src/beast/birnet/birnetthread.hh:80 |
read_barrier | | /opt/src/beast/birnet/birnetthread.hh:63 |
uint_add | | /opt/src/beast/birnet/birnetthread.hh:76 |
uint_cas | | /opt/src/beast/birnet/birnetthread.hh:75 |
uint_get | | /opt/src/beast/birnet/birnetthread.hh:74 |
uint_set | | /opt/src/beast/birnet/birnetthread.hh:73 |
uint_swap_add | | /opt/src/beast/birnet/birnetthread.hh:77 |
write_barrier | | /opt/src/beast/birnet/birnetthread.hh:64 |
|
|