AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ CheckLockTaken()

void drama::CheckLockTaken ( const std::string  func,
const std::string &  file,
const int  lineNum 
)
extern

Ensure the current thread has taken the DRAMA task lock.


Throw an exception if not.

This won't do anything unless DRAMA was compiled with the DRAMA2_LOCK_DEBUG macro defined.

This method is static and uses an internal static variable to find the drama::Task object.

func, file and lineNum are used in constructing the exception so you know the source of the call.

Parameters
funcName of the function where the call was made
fileName of the file in which the call was made
lineNumLine number where the call was made.

Referenced by drama::Task::GetTaskType().