A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCSyncQueue__InternalAutoLock.html below:

NCBI C++ ToolKit: CSyncQueue_InternalAutoLock< Type, Container, Traits

Search Toolkit Book for CSyncQueue_InternalAutoLock

Auto-lock the queue and unlock it when object will be destroyed. More...

#include <util/sync_queue.hpp>

template<class Type, class Container, class Traits>
class CSyncQueue_InternalAutoLock< Type, Container, Traits >

Auto-lock the queue and unlock it when object will be destroyed.

For internal use in CSyncQueue only. Do not use it in your applications. Use CSyncQueue_AccessLock instead.

Definition at line 1154 of file sync_queue.hpp.

◆ TMyType

template<class Type , class Container , class Traits >

Definition at line 1214 of file sync_queue.hpp.

◆ TQueue

template<class Type , class Container , class Traits >

Short name for queue type that this object can lock.

Definition at line 1158 of file sync_queue.hpp.

◆ CSyncQueue_InternalAutoLock() [1/3]

template<class Type , class Container , class Traits >

◆ CSyncQueue_InternalAutoLock() [2/3]

template<class Type , class Container , class Traits >

Constructor – lock the queue and waiting for its lock for a given timeout.

Parameters
pqueue Queue to lock timeout Time period to wait until the queue can be locked. If NULL then wait infinitely.

Definition at line 1171 of file sync_queue.hpp.

References ThrowSyncQueueTimeout().

◆ ~CSyncQueue_InternalAutoLock()

template<class Type , class Container , class Traits >

◆ CSyncQueue_InternalAutoLock() [3/3]

template<class Type , class Container , class Traits >

◆ Lock()

template<class Type , class Container , class Traits >

Lock a queue.

Parameters
pqueue Queue to lock timeout Time period to wait until the queue can be locked. If NULL then wait infinitely.
Returns
TRUE if queue is locked successfully, FALSE if timeout is exceeded

Definition at line 1195 of file sync_queue.hpp.

References CSyncQueue_ConstAccessGuard< Type, Container, Traits >::m_Queue, result, and CSyncQueue< Type, Container, Traits >::x_Lock().

Referenced by CSyncQueue< Type, Container, Traits >::Clear(), CSyncQueue< Type, Container, Traits >::CopyTo(), CSyncQueue< Type, Container, Traits >::x_DoubleLock(), and CSyncQueue< Type, Container, Traits >::x_LockAndWait().

◆ operator=()

template<class Type , class Container , class Traits >

◆ Unlock()

template<class Type , class Container , class Traits >

◆ m_Queue

template<class Type , class Container , class Traits >

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4