|
cds
2.3.2
|
Reclamation thread for general_threaded URCU.
More...
#include <cds/urcu/dispose_thread.h>
Public Types | |
| typedef Buffer | buffer_type |
| Buffer type. | |
Public Member Functions | |
| void | start () |
| Start reclamation thread. More... | |
| void | stop (buffer_type &buf, uint64_t nCurEpoch) |
| Stop reclamation thread. More... | |
| void | dispose (buffer_type &buf, uint64_t nCurEpoch, bool bSync) |
| Start reclamation cycle. More... | |
Reclamation thread for general_threaded URCU.
The object of this class contains a reclamation thread object and necessary synchronization object(s). The object manages reclamation thread and defines a set of messages (i.e. methods) to communicate with the thread.
Template argument Buffer defines the buffer type of general_threaded URCU.
|
inline |
Start reclamation cycle.
This function is called by general_threaded object to notify the reclamation thread about a new work. buf buffer contains retired objects ready to free. The reclamation thread should free all buf objects m_nEpoch field of which is no more than nCurEpoch.
If bSync parameter is true the calling thread should wait until disposing done.
|
inline |
Start reclamation thread.
This function is called by general_threaded object to start internal reclamation thread.
|
inline |
Stop reclamation thread.
This function is called by general_threaded object to start reclamation cycle and then to terminate reclamation thread.
buf buffer contains retired objects ready to free.