#include <ucommon/platform.h>
#include <ucommon/protocols.h>
#include <ucommon/linked.h>
#include <ucommon/memory.h>
#include <ucommon/thread.h>
Go to the source code of this file.
Namespaces | |
namespace | ucc |
Data Structures | |
class | ucc::Buffer |
A thread-safe buffer for serializing and streaming class data. More... | |
class | ucc::bufferof< T > |
A templated typed class for buffering of objects. More... | |
class | ucc::linked_allocator< T > |
Linked allocator template to gather linked objects. More... | |
class | ucc::LinkedAllocator |
Linked allocator helper for linked_allocator template. More... | |
class | ucc::queue |
Manage a thread-safe queue of objects through reference pointers. More... | |
class | ucc::queueof< T > |
A templated typed class for thread-safe queue of object pointers. More... | |
class | ucc::stack |
Manage a thread-safe stack of objects through reference pointers. More... | |
class | ucc::stackof< T > |
A templated typed class for thread-safe stack of object pointers. More... | |
Typedefs | |
typedef queue | ucc::fifo_t |
Convenience type for using thread-safe object fifo (queue). | |
typedef stack | ucc::stack_t |
Convenience type for using thread-safe object stacks. | |
Functions | |
Object * | ucc::pull (fifo_t &fifo, timeout_t timeout=Timer::inf) |
Convenience function to pull an object from a fifo. | |
Object * | ucc::pull (stack_t &stack, timeout_t timeout=Timer::inf) |
Convenience function to pull an object from a stack. | |
void | ucc::push (fifo_t &fifo, Object *object) |
Convenience function to push an object onto a fifo. | |
void | ucc::push (stack_t &stack, Object *object) |
Convenience function to push an object onto a stack. | |
void | ucc::remove (fifo_t &fifo, Object *object) |
Convenience function to remove an object from a fifo. | |
void | ucc::remove (stack_t &stack, Object *object) |
Convenience function to remove an object from a stack. |
This is used to better define object containers and manipulating classes which can be presumed to be fully threadsafe and thread-aware. This has to be defined separately to assure correct order of preceeding headers as well as to better organize the library for clarity. Most of these classes and templates work with classes derived from Object and LinkedObject and make use of conditional for time constrained acquisition of managed objects.
Definition in file containers.h.