Commit 05d4fe4b authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - WSharedObject now also provides these nice boost::shared_ptr abbreviations.

parent 0a3510b6
......@@ -52,6 +52,11 @@ public:
*/
virtual ~WSharedObject();
/**
* The type protected by this shared object class
*/
typedef T ValueT;
/**
* Type for read tickets.
*/
......@@ -62,6 +67,16 @@ public:
*/
typedef boost::shared_ptr< WSharedObjectTicketWrite< T > > WriteTicket;
/**
* Shared pointer abbreviation.
*/
typedef boost::shared_ptr< WSharedObject< T > > SPtr;
/**
* Const shared ptr abbreviation.
*/
typedef boost::shared_ptr< WSharedObject< T > > ConstSPtr;
/**
* Returns a ticket to get read access to the contained data. After the ticket is freed, the read lock vanishes.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment