OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::DefaultWorkQueueBase::RequestHandlerHolder Class Reference

Intermediate structure to hold a pointer to a request handler which provides insurance against the handler itself being disconnected while the list remains unchanged. More...

#include <OgreWorkQueue.h>

+ Inheritance diagram for Ogre::DefaultWorkQueueBase::RequestHandlerHolder:
+ Collaboration diagram for Ogre::DefaultWorkQueueBase::RequestHandlerHolder:

Public Member Functions

 RequestHandlerHolder (RequestHandler *handler)
 
void disconnectHandler ()
 
RequestHandler * getHandler ()
 Get handler pointer - note, only use this for == comparison or similar, do not attempt to call it as it is not thread safe. More...
 
ResponsehandleRequest (const Request *req, const WorkQueue *srcQ)
 Process a request if possible. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 

Protected Member Functions

 OGRE_RW_MUTEX (mRWMutex)
 

Protected Attributes

RequestHandler * mHandler
 

Detailed Description

Intermediate structure to hold a pointer to a request handler which provides insurance against the handler itself being disconnected while the list remains unchanged.

Definition at line 472 of file OgreWorkQueue.h.

Constructor & Destructor Documentation

Ogre::DefaultWorkQueueBase::RequestHandlerHolder::RequestHandlerHolder ( RequestHandler *  handler)
inline

Definition at line 478 of file OgreWorkQueue.h.

Member Function Documentation

void Ogre::DefaultWorkQueueBase::RequestHandlerHolder::disconnectHandler ( )
inline

Definition at line 482 of file OgreWorkQueue.h.

References OGRE_LOCK_RW_MUTEX_WRITE.

RequestHandler* Ogre::DefaultWorkQueueBase::RequestHandlerHolder::getHandler ( )
inline

Get handler pointer - note, only use this for == comparison or similar, do not attempt to call it as it is not thread safe.

Definition at line 492 of file OgreWorkQueue.h.

Response* Ogre::DefaultWorkQueueBase::RequestHandlerHolder::handleRequest ( const Request req,
const WorkQueue srcQ 
)
inline

Process a request if possible.

Returns
Valid response if processed, null otherwise

Definition at line 497 of file OgreWorkQueue.h.

References OGRE_LOCK_RW_MUTEX_READ.

Ogre::DefaultWorkQueueBase::RequestHandlerHolder::OGRE_RW_MUTEX ( mRWMutex  )
protected
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 95 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 101 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 107 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 112 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 118 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 67 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 72 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 78 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 85 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 90 of file OgreMemoryAllocatedObject.h.

Member Data Documentation

RequestHandler* Ogre::DefaultWorkQueueBase::RequestHandlerHolder::mHandler
protected

Definition at line 476 of file OgreWorkQueue.h.


The documentation for this class was generated from the following file: