#include <ThreadList.hpp>
Classes | |
struct | ThreadListContainer_struct |
Public Types | |
typedef struct ThreadList::ThreadListContainer_struct | ThreadListContainer |
typedef struct ThreadListContainer_struct * | ThreadListContainer_ptr |
Public Member Functions | |
ThreadList () | |
void | push_back (T t) |
T | pop_front () |
int | length () |
~ThreadList () | |
ThreadListContainer_ptr | getFront () |
T | remove (ThreadListContainer_ptr ptr) |
Public Attributes | |
volatile ThreadListContainer_ptr | front |
volatile ThreadListContainer_ptr | back |
pthread_mutex_t | remove_mutex |
int | l |
This is a special list, where one (!) thread can push back while one (!) can pop_front with only one mutex needed and (hopefully) not too much busy waiting However there are some rules:
Definition at line 29 of file ThreadList.hpp.
typedef struct ThreadList::ThreadListContainer_struct ThreadList< T >::ThreadListContainer |
typedef struct ThreadListContainer_struct* ThreadList< T >::ThreadListContainer_ptr |
Definition at line 37 of file ThreadList.hpp.
|
inline |
Definition at line 38 of file ThreadList.hpp.
|
inline |
Definition at line 81 of file ThreadList.hpp.
|
inline |
Definition at line 87 of file ThreadList.hpp.
|
inline |
Definition at line 77 of file ThreadList.hpp.
|
inline |
Definition at line 59 of file ThreadList.hpp.
|
inline |
Definition at line 45 of file ThreadList.hpp.
|
inline |
Definition at line 91 of file ThreadList.hpp.
volatile ThreadListContainer_ptr ThreadList< T >::back |
Definition at line 125 of file ThreadList.hpp.
volatile ThreadListContainer_ptr ThreadList< T >::front |
Definition at line 124 of file ThreadList.hpp.
int ThreadList< T >::l |
Definition at line 127 of file ThreadList.hpp.
pthread_mutex_t ThreadList< T >::remove_mutex |
Definition at line 126 of file ThreadList.hpp.