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:
[legend]

## 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...
Response * | handleRequest (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 491 of file OgreWorkQueue.h.

## Constructor & Destructor Documentation

## RequestHandlerHolder()

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

Definition at line 497 of file OgreWorkQueue.h.

## Member Function Documentation

## disconnectHandler()

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

Definition at line 501 of file OgreWorkQueue.h.

References OGRE_LOCK_RW_MUTEX_WRITE.

## getHandler()

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

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 511 of file OgreWorkQueue.h.

## handleRequest()

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

Process a request if possible.

Returns
  Valid response if processed, null otherwise

Definition at line 516 of file OgreWorkQueue.h.

References OGRE_LOCK_RW_MUTEX_READ.

## OGRE_RW_MUTEX()

Ogre::DefaultWorkQueueBase::RequestHandlerHolder::OGRE_RW_MUTEX | ( | mRWMutex |  | ) |

protected

## operator delete() [1/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) |

inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

## operator delete() [2/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | void * |
| ) |  |

inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

## operator delete() [3/3]

template<class Alloc >

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

inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [1/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) |

inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [2/2]

template<class Alloc >

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

inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

## operator new() [1/3]

template<class Alloc >

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

inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

## operator new() [2/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) |

inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

## operator new() [3/3]

template<class Alloc >

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

inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

## operator new[]() [1/2]

template<class Alloc >

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

inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

## operator new[]() [2/2]

template<class Alloc >

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

inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

## Member Data Documentation

## mHandler

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

protected

Definition at line 495 of file OgreWorkQueue.h.

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

- OgreWorkQueue.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.