|
| RtList (CommandQueue &fifo) |
| Constructor. More...
|
|
| ~RtList () |
| Destructor. More...
|
|
template<typename X > |
X * | add (X *item) |
| Add an element to the list. More...
|
|
template<typename ForwardIterator > |
void | add (ForwardIterator first, ForwardIterator last) |
| Add a range of elements to the list. More...
|
|
void | rem (T *to_rem) |
| Remove an element from the list. More...
|
|
template<typename ForwardIterator > |
void | rem (ForwardIterator first, ForwardIterator last) |
| Remove a range of elements from the list. More...
|
|
void | clear () |
| Remove all elements from the list. More...
|
|
void | splice (iterator position, RtList &x) |
| Splice another RtList into the RtList. More...
|
|
void | splice (iterator position, RtList &x, iterator first, iterator last) |
| Splice a part of another RtList into the RtList. More...
|
|
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
bool | empty () const |
|
size_type | size () const |
|
template<typename T>
class apf::RtList< T * >
A list for realtime access and non-realtime modification.
It is normally used by a realtime thread and a non-realtime thread at the same time.
The list is created and modified (using add(), rem(), ...) by the non-realtime thread. These functions are not safe for multiple non-realtime threads; access has to be locked in this case.
Before the realtime thread can access the list elements, it has to call CommandQueue::process_commands() to synchronize.
TODO: more information about which functions are allowed in which thread.
Definition at line 57 of file rtlist.h.