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/blast__mtlock_8cpp_source.html below:

NCBI C++ ToolKit: src/algo/blast/api/blast_mtlock.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

static int BlastLockHandler(void *user_data, EMT_Lock how)

Locking callback for the Blast MT_LOCK implementation.

static void BlastLockCleanup(void *user_data)

Cleanup callback for the Blast MT_LOCK implementation.

C++ version of the initialization for the mutex locking interface.

MT_LOCK Blast_CMT_LOCKInit()

Initializes the C++ style locking mechanism for BLAST.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define END_SCOPE(ns)

End the previously defined scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define BEGIN_SCOPE(ns)

Define a new scope.

void Lock(void)

Acquire mutex for the current thread with no nesting checks.

void Unlock(void)

Release mutex with no owner or nesting checks.

EMT_Lock

Set the lock/unlock callback function and its data for MT critical section.

MT_LOCK MT_LOCK_Create(void *data, FMT_LOCK_Handler handler, FMT_LOCK_Cleanup cleanup)

Create a new MT lock (with an internal reference count set to 1).

@ eMT_Unlock

unlock critical section

@ eMT_Lock

lock critical section

Multi-threading – mutexes; rw-locks; semaphore.


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