top | up | prev | next

Global Namespace

Namespaces

cmajor
rt

Classes

struct ClassDelegate
struct FunctionUnwindInfo
class GlobalUnwindInfo
struct UnwindInfo

Functions

void DoneUnwind()
void InitUnwind()
double Pow(double x, double y)
void RtAddCh(int ch)
void RtAddCompileUnitFunction(void* functionAddress, const char* functionName, const char* sourceFilePath)
void RtAddStr(const char* str)
void* RtAllocateConditionVariable()
void* RtAllocateMutex()
void* RtAllocateRecursiveMutex()
double RtArcCos(double x)
double RtArcSin(double x)
char RtAsciiToLower(char c)
char RtAsciiToUpper(char c)
double RtAtan2(double y, double x)
void RtAttrOff(int attrs)
void RtAttrOn(int attrs)
void RtAttrSet(int attrs)
int32_t RtBeginIterateDirectory(const char* directoryPath)
void RtBeginStaticInitCriticalSection(void* staticClassId)
void RtBeginTraceFunction(int32_t traceFunctionId)
void RtBeginTracing()
short RtBlack()
short RtBlue()
void RtCBreak()
void RtCaptureException(void** exception, uint64_t& exceptionClassIdHi, uint64_t& exceptionClassIdLo)
void RtClear()
void RtClearToEol()
int RtColorPair(short n)
int32_t RtCompressBZip2(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void* handle, int32_t action)
void* RtConvertThreadToFiber(void* param)
double RtCos(double angleRad)
void RtCreateDirectories(const char* directoryPath)
void* RtCreateFiber(uint64_t stackSize, void* startAddress, void* param)
void* RtCreateProcess(const char* command, int32_t redirections, int32_t& errorStringHandle)
void RtCursSet(int visibility)
short RtCyan()
int32_t RtDecompressBZip2(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void* handle)
int32_t RtDeflateZlib(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void* handle, int32_t flush)
void RtDeleteFiber(void* fiber)
void RtDeleteProcess(void* process)
bool RtDirectoryExists(const char* directoryPath)
void RtDispose(void* ptr)
void RtDisposeCallStack()
void RtDisposeError(int32_t errorId)
void RtDisposeStackTrace()
void RtDisposeString(int32_t stringHandle)
void RtDoneBZip2(int32_t mode, void* handle)
void RtDoneScreen()
void RtDoneZlib(int32_t mode, void* handle)
void RtEcho()
void RtEndIterateDirectory(int32_t directoryIterationHandle)
void RtEndProfiling()
void RtEndStaticInitCriticalSection(void* staticClassId)
void RtEndTraceFunction(int32_t traceFunctionId)
void RtEndTracing()
void RtEndUnitTest(const char* testName, int32_t exitCode)
void RtEnqueueDestruction(void* destructor, void* arg)
void RtEnterFunction(const char* functionName, const char* sourceFilePath)
double RtEpsilon()
void RtErase()
void RtExitFunction()
void RtFailAssertion(const char* assertion, const char* function, const char* sourceFilePath, int lineNumber)
void RtFreeConditionVariable(void* nativeHandle)
void RtFreeMutex(void* nativeHandle)
void RtFreeRecursiveMutex(void* nativeHandle)
const char* RtGetCallStack()
int RtGetCh()
void RtGetCurrentDate(int16_t* year, int8_t* month, int8_t* day)
void RtGetCurrentDateTime(int16_t* year, int8_t* month, int8_t* day, int32_t* secs)
int64_t RtGetCurrentTime()
const char* RtGetError(int32_t errorId)
void* RtGetException()
void* RtGetExceptionTypeId()
void* RtGetFiberData()
int32_t RtGetHardwareConcurrency()
void RtGetMaxYX(int* rows, int* cols)
void RtGetNStr(char* str, int size)
const char* RtGetNextDirectoryPath(int32_t directoryIterationHandle)
const char* RtGetNextFilePath(int32_t directoryIterationHandle)
uint32_t RtGetRandomSeed()
int RtGetRawCh()
const char* RtGetStackTrace()
const char* RtGetString(int32_t stringHandle)
void RtGetYX(int* row, int* col)
short RtGreen()
bool RtHandleException(void* exceptionTypeId)
int32_t RtInflateZlib(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void* handle)
int32_t RtInitBZip2(int32_t mode, int32_t compressionLevel, int32_t compressionWorkFactor, void** handle)
void RtInitPair(short n, short foregroundColor, short backgroundColor)
void RtInitRand(uint32_t seed)
void RtInitScreen()
int32_t RtInitZlib(int32_t mode, int32_t level, void** handle)
bool RtIsUserAssertionFailureFunctionSet()
bool RtJoinThread(int32_t threadId)
void RtKeyPad()
void RtLockMutex(void* nativeHandle)
void RtLockRecursiveMutex(void* nativeHandle)
short RtMagenta()
void* RtMemAlloc(int64_t size)
void* RtMemAllocInfo(int64_t size, const char* info)
void RtMemFree(void* ptr)
void RtMemZero(void* ptr, int64_t size)
void RtMove(int row, int col)
void RtNoCBreak()
void RtNoEcho()
void RtNoRaw()
int32_t RtNotifyAll(void* nativeHandle)
int32_t RtNotifyOne(void* nativeHandle)
int64_t RtNow()
double RtPi()
void RtPopUnwindInfo(void* prevUnwindInfo)
double RtPow(double x, int32_t exponent)
void RtPrintCallStack(void* fileHandle)
bool RtProcessEof(void* process, int handle, int32_t& errorStringHandle)
int RtProcessExitCode(void* process, int32_t& errorStringHandle)
int32_t RtProcessReadLine(void* process, int handle, int32_t& errorStringHandle)
int32_t RtProcessReadToEnd(void* process, int handle, int32_t& errorStringHandle)
bool RtProcessRunning(void* process, int32_t& errorStringHandle)
bool RtProcessTerminate(void* process, int32_t& errorStringHandle)
bool RtProcessWaitForExit(void* process, int32_t& errorStringHandle)
bool RtProcessWriteLine(void* process, const char* line, int32_t& errorStrHandle)
void RtProfileEndFunction(void* functionId)
void RtProfileStartFunction(void* functionId)
void* RtPushUnwindInfo(void* unwindInfo)
uint32_t RtRandom()
uint64_t RtRandom64()
void RtRaw()
short RtRed()
void RtRefresh()
const char* RtRetvalStrBZip2(int32_t retVal)
const char* RtRetvalStrZlib(int32_t retVal)
bool RtRunningOnWsl()
void RtSetInputBZip2(void* inChunk, uint32_t inAvail, void* handle)
void RtSetInputZlib(void* inChunk, uint32_t inAvail, void* handle)
void RtSetLineNumber(int32_t lineNumber)
void RtSetThreadId(char threadId)
void RtSetUnitTestAssertionResult(int32_t assertionIndex, bool assertionResult, int32_t line)
void RtSetUnitTestException(const char* exceptionStr)
void RtSetUserAssertionFailureFunction(AssertionFailureFunction userAssertionFailureFunc)
double RtSin(double angleRad)
void RtSleep(int64_t nanoseconds)
double RtSqrt(double x)
void RtStartColor()
void RtStartProfiling(int64_t numberOfPolymorphicClassIds, const uint64_t* polymorphicClassIdArray, int64_t numberOfStaticClassIds, const uint64_t* staticClassIdArray)
int32_t RtStartThreadFunction(void* function)
int32_t RtStartThreadFunctionWithParam(void* function, void* param)
int32_t RtStartThreadMethod(void* classDelegate)
int32_t RtStartThreadMethodWithParam(void* classDelegate, void* param)
void RtStartUnitTest(int32_t numAssertions, const char* unitTestFilePath, int64_t numberOfPolymorphicClassIds, const uint64_t* polymorphicClassIdArray, int64_t numberOfStaticClassIds, const uint64_t* staticClassIdArray)
void RtSwitchToFiber(void* fiber)
int32_t RtThisThreadId()
void RtThrowCapturedException(void* exception, uint64_t exceptionClassIdHi, uint64_t exceptionClassIdLo)
void RtThrowException(void* exception, void* exceptionTypeId)
int RtTranslateCh(int ch)
void RtUnlockMutex(void* nativeHandle)
void RtUnlockRecursiveMutex(void* nativeHandle)
int32_t RtWaitConditionVariable(void* nativeHandle, void* recursiveMutexHandle)
int32_t RtWaitConditionVariableDuration(void* nativeHandle, void* recursiveMutexHandle, int64_t nanoseconds)
short RtWhite()
void RtWindowsMessage(int32_t messageId)
short RtYellow()
void SetKeys()
int32_t bz2_compress(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void* handle, int32_t action)
int32_t bz2_decompress(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void* handle)
void bz2_done(int32_t mode, void* handle)
int32_t bz2_init(int32_t mode, int32_t compressionLevel, int32_t compressionWorkFactor, void** handle)
const char* bz2_retval_str(int32_t retVal)
void bz2_set_input(void* inChunk, uint32_t inAvail, void* handle)
ConnectOptions operator&(ConnectOptions left, ConnectOptions right) inline
OpenMode operator&(OpenMode left, OpenMode right) inline
ConnectOptions operator|(ConnectOptions left, ConnectOptions right) inline
OpenMode operator|(OpenMode left, OpenMode right) inline
int32_t zlib_deflate(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void* handle, int32_t flush)
void zlib_done(int32_t mode, void* handle)
int32_t zlib_inflate(void* outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void* handle)
int32_t zlib_init(int32_t mode, int32_t level, void** handle)
const char* zlib_retval_str(int32_t retVal)
void zlib_set_input(void* inChunk, uint32_t inAvail, void* handle)

Enumerations

enum class CondVarStatus
enum class ConnectOptions
enum class OpenMode
enum class Origin
enum class ShutdownMode

Variables

int cdn
int cend
int chome
int clft
int cpgdn
int cpgup
int crgt
int cup
std::mutex destructionListMutex
const int exitCodeAccessViolation
const int exitCodeAssertionFailed
const int exitCodeExceptionEscapedFromThread
const int exitCodeInternalError
const int exitCodeOutOfMemory
const int exitCodeSocketInitializationFailed
int indent
const int keyBackspace
const int keyControlA
const int keyControlB
const int keyControlC
const int keyControlD
const int keyControlDel
const int keyControlDown
const int keyControlE
const int keyControlEnd
const int keyControlF
const int keyControlF1
const int keyControlF10
const int keyControlF11
const int keyControlF12
const int keyControlF2
const int keyControlF3
const int keyControlF4
const int keyControlF5
const int keyControlF6
const int keyControlF7
const int keyControlF8
const int keyControlF9
const int keyControlG
const int keyControlH
const int keyControlHome
const int keyControlI
const int keyControlJ
const int keyControlK
const int keyControlL
const int keyControlLeft
const int keyControlM
const int keyControlN
const int keyControlO
const int keyControlP
const int keyControlPgDown
const int keyControlPgUp
const int keyControlQ
const int keyControlR
const int keyControlRight
const int keyControlS
const int keyControlT
const int keyControlU
const int keyControlUp
const int keyControlV
const int keyControlW
const int keyControlX
const int keyControlY
const int keyControlZ
const int keyDel
const int keyDown
const int keyEnd
const int keyEnter
const int keyEscape
const int keyF0
const int keyF1
const int keyF10
const int keyF11
const int keyF12
const int keyF2
const int keyF3
const int keyF4
const int keyF5
const int keyF6
const int keyF7
const int keyF8
const int keyF9
const int keyFS
const int keyGS
const int keyHome
const int keyIns
const int keyLeft
const int keyPgDown
const int keyPgUp
const int keyPrint
const int keyRS
const int keyResize
const int keyRight
const int keyShiftDel
const int keyShiftDown
const int keyShiftEnd
const int keyShiftF1
const int keyShiftF10
const int keyShiftF11
const int keyShiftF12
const int keyShiftF2
const int keyShiftF3
const int keyShiftF4
const int keyShiftF5
const int keyShiftF6
const int keyShiftF7
const int keyShiftF8
const int keyShiftF9
const int keyShiftHome
const int keyShiftLeft
const int keyShiftPgDown
const int keyShiftPgUp
const int keyShiftRight
const int keyShiftUp
const int keyTab
const int keyUS
const int keyUp
int ksdn
int ksup
int nextThreadId
bool runningOnWsl
const int specialKeyEnd
const int specialKeyStart
const int stdErrFileHandle
const int stdInFileHandle
const int stdOutFileHandle
std::unordered_map<std::thread::id, int> threadIdMap
std::mutex threadIdMapMutex
void* unwindList
AssertionFailureFunction userAssertionFailureFunction

Function Details

DoneUnwind Function

void DoneUnwind()

Definition at line 160 of Unwind.cpp :
161 {
162     GlobalUnwindInfo::Done();
163 }


Declaration at line 16 of Unwind.hpp

Calls: GlobalUnwindInfo::Done


InitUnwind Function

void InitUnwind()

Definition at line 155 of Unwind.cpp :
156 {
157     GlobalUnwindInfo::Init();
158 }


Declaration at line 15 of Unwind.hpp

Calls: GlobalUnwindInfo::Init


Pow Function

double Pow(double x, double y)

Definition at line 17 of Math.cpp :
18 {
19     return std::pow(xy);
20 }


Declaration at line 12 of Math.hpp


RtAddCh Function

void RtAddCh(int ch)

Definition at line 225 of Screen.cpp
Declaration at line 27 of Screen.hpp


RtAddCompileUnitFunction Function

void RtAddCompileUnitFunction(void * functionAddress, const char * functionName, const char * sourceFilePath)

Definition at line 130 of Unwind.cpp :
131 {
132     if (GlobalUnwindInfo::Initialized())
133     {
134         GlobalUnwindInfo::Instance().AddUnwindInfo(functionAddressfunctionNamesourceFilePath);
135     }
136 }


Declaration at line 12 of Unwind.hpp

Calls: GlobalUnwindInfo::AddUnwindInfo , GlobalUnwindInfo::Initialized , GlobalUnwindInfo::Instance


RtAddStr Function

void RtAddStr(const char * str)

Definition at line 230 of Screen.cpp
Declaration at line 28 of Screen.hpp


RtAllocateConditionVariable Function

void * RtAllocateConditionVariable()

Definition at line 15 of ConditionVariable.cpp :
16 {
17     return new std::condition_variable_any();
18 }


Declaration at line 11 of ConditionVariable.hpp


RtAllocateMutex Function

void * RtAllocateMutex()

Definition at line 10 of Mutex.cpp :
11 {
12     return new std::mutex();
13 }


Declaration at line 10 of Mutex.hpp


RtAllocateRecursiveMutex Function

void * RtAllocateRecursiveMutex()

Definition at line 35 of Mutex.cpp :
36 {
37     return new std::recursive_mutex();
38 }


Declaration at line 15 of Mutex.hpp


RtArcCos Function

double RtArcCos(double x)

Definition at line 42 of Math.cpp :
43 {
44     return std::acos(x);
45 }


Declaration at line 17 of Math.hpp


RtArcSin Function

double RtArcSin(double x)

Definition at line 47 of Math.cpp :
48 {
49     return std::asin(x);
50 }


Declaration at line 18 of Math.hpp


RtAsciiToLower Function

char RtAsciiToLower(char c)

Definition at line 14 of Ascii.cpp
Declaration at line 11 of Ascii.hpp


RtAsciiToUpper Function

char RtAsciiToUpper(char c)

Definition at line 9 of Ascii.cpp
Declaration at line 10 of Ascii.hpp


RtAtan2 Function

double RtAtan2(double y, double x)

Definition at line 52 of Math.cpp :
53 {
54     return std::atan2(yx);
55 }


Declaration at line 19 of Math.hpp


RtAttrOff Function

void RtAttrOff(int attrs)

Definition at line 268 of Screen.cpp
Declaration at line 34 of Screen.hpp


RtAttrOn Function

void RtAttrOn(int attrs)

Definition at line 263 of Screen.cpp
Declaration at line 33 of Screen.hpp


RtAttrSet Function

void RtAttrSet(int attrs)

Definition at line 273 of Screen.cpp
Declaration at line 35 of Screen.hpp


RtBeginIterateDirectory Function

int32_t RtBeginIterateDirectory(const char * directoryPath)

Definition at line 148 of Directory.cpp
Declaration at line 20 of Directory.hpp

Calls: cmajor::rt::DirectoryIterationTable::BeginIterate , cmajor::rt::DirectoryIterationTable::Instance


RtBeginStaticInitCriticalSection Function

void RtBeginStaticInitCriticalSection(void * staticClassId)

Definition at line 133 of Statics.cpp
Declaration at line 13 of Statics.hpp

Calls: cmajor::rt::StaticInitTable::BeginCriticalSection , cmajor::rt::StaticInitTable::Instance


RtBeginTraceFunction Function

void RtBeginTraceFunction(int32_t traceFunctionId)

Definition at line 24 of Trace.cpp :
25 {
26     soulng::util::AddTraceEntry(soulng::util::EntryKind::begintraceFunctionId);
27 }


Declaration at line 14 of Trace.hpp


RtBeginTracing Function

void RtBeginTracing()

Definition at line 9 of Trace.cpp :
10 {
11     soulng::util::BeginTracing();
12 }


Declaration at line 11 of Trace.hpp


RtBlack Function

short RtBlack()

Definition at line 298 of Screen.cpp
Declaration at line 40 of Screen.hpp


RtBlue Function

short RtBlue()

Definition at line 303 of Screen.cpp
Declaration at line 41 of Screen.hpp


RtCBreak Function

void RtCBreak()

Definition at line 152 of Screen.cpp
Declaration at line 14 of Screen.hpp


RtCaptureException Function

void RtCaptureException(void ** exception, uint64_t& exceptionClassIdHi, uint64_t& exceptionClassIdLo)

Definition at line 170 of Error.cpp :
171 {
172     *exception = cmajor::rt::currentException;
173     cmajor::rt::currentException = nullptr;
174     exceptionClassIdHi = static_cast<uint64_t>(cmajor::rt::currentExceptionClassId[0]);
175     exceptionClassIdLo = static_cast<uint64_t>(cmajor::rt::currentExceptionClassId[1]);
176     cmajor::rt::currentExceptionClassId[0] = 0;
177     cmajor::rt::currentExceptionClassId[1] = 0;
178 }


Declaration at line 28 of Error.hpp


RtClear Function

void RtClear()

Definition at line 201 of Screen.cpp
Declaration at line 23 of Screen.hpp


RtClearToEol Function

void RtClearToEol()

Definition at line 206 of Screen.cpp
Declaration at line 24 of Screen.hpp


RtColorPair Function

int RtColorPair(short n)

Definition at line 288 of Screen.cpp
Declaration at line 38 of Screen.hpp


RtCompressBZip2 Function

int32_t RtCompressBZip2(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void * handle, int32_t action)

Definition at line 59 of Compression.cpp
Declaration at line 25 of Compression.hpp


RtConvertThreadToFiber Function

void * RtConvertThreadToFiber(void * param)

Definition at line 9 of Fiber.cpp :
10 {
11     return soulng::util::ConvertThreadToFiber(param);
12 }


Declaration at line 11 of Fiber.hpp


RtCos Function

double RtCos(double angleRad)

Definition at line 32 of Math.cpp :
33 {
34     return std::cos(angleRad);
35 }


Declaration at line 15 of Math.hpp


RtCreateDirectories Function

void RtCreateDirectories(const char * directoryPath)

Definition at line 143 of Directory.cpp
Declaration at line 19 of Directory.hpp


RtCreateFiber Function

void * RtCreateFiber(uint64_t stackSize, void * startAddress, void * param)

Definition at line 14 of Fiber.cpp :
15 {
16     return soulng::util::CreateFiber(stackSizestartAddressparam);
17 }


Declaration at line 12 of Fiber.hpp


RtCreateProcess Function

void * RtCreateProcess(const char * command, int32_t redirections, int32_t& errorStringHandle)

Definition at line 10 of Process.cpp
Declaration at line 11 of Process.hpp


RtCursSet Function

void RtCursSet(int visibility)

Definition at line 177 of Screen.cpp
Declaration at line 19 of Screen.hpp


RtCyan Function

short RtCyan()

Definition at line 318 of Screen.cpp
Declaration at line 44 of Screen.hpp


RtDecompressBZip2 Function

int32_t RtDecompressBZip2(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void * handle)

Definition at line 64 of Compression.cpp
Declaration at line 26 of Compression.hpp


RtDeflateZlib Function

int32_t RtDeflateZlib(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void * handle, int32_t flush)

Definition at line 27 of Compression.cpp
Declaration at line 16 of Compression.hpp


RtDeleteFiber Function

void RtDeleteFiber(void * fiber)

Definition at line 29 of Fiber.cpp :
30 {
31     soulng::util::DeleteFiber(fiber);
32 }


Declaration at line 15 of Fiber.hpp


RtDeleteProcess Function

void RtDeleteProcess(void * process)

Definition at line 26 of Process.cpp :
 27 {
 28     delete static_cast<soulng::util::Process*>(process);
 29 }


Declaration at line 12 of Process.hpp


RtDirectoryExists Function

bool RtDirectoryExists(const char * directoryPath)

Definition at line 138 of Directory.cpp
Declaration at line 18 of Directory.hpp


RtDispose Function

void RtDispose(void * ptr)

Definition at line 260 of Memory.cpp
Declaration at line 13 of Memory.hpp

Calls: cmajor::rt::DebugHeap::Dispose , cmajor::rt::DebugHeap::GetDebugHeap , cmajor::rt::DebugHeap::GetDebugSerial , cmajor::rt::DebugHeap::Instance


RtDisposeCallStack Function

void RtDisposeCallStack()

Definition at line 147 of Unwind.cpp :
148 {
149     if (GlobalUnwindInfo::Initialized())
150     {
151         GlobalUnwindInfo::Instance().DisposeCallStack(static_cast<UnwindInfo*>(unwindList));
152     }
153 }


Declaration at line 14 of Unwind.hpp

Calls: GlobalUnwindInfo::DisposeCallStack , GlobalUnwindInfo::Initialized , GlobalUnwindInfo::Instance


RtDisposeError Function

void RtDisposeError(int32_t errorId)

Definition at line 155 of Error.cpp :
156 {
157     cmajor::rt::DisposeError(errorId);
158 }


Declaration at line 26 of Error.hpp


RtDisposeStackTrace Function

void RtDisposeStackTrace()

Definition at line 158 of CallStack.cpp
Declaration at line 16 of CallStack.hpp


RtDisposeString Function

void RtDisposeString(int32_t stringHandle)

Definition at line 36 of Process.cpp :
 37 {
 38     cmajor::rt::DisposeString(stringHandle);
 39 }


Declaration at line 14 of Process.hpp


RtDoneBZip2 Function

void RtDoneBZip2(int32_t mode, void * handle)

Definition at line 49 of Compression.cpp
Declaration at line 23 of Compression.hpp


RtDoneScreen Function

void RtDoneScreen()

Definition at line 137 of Screen.cpp
Declaration at line 11 of Screen.hpp


RtDoneZlib Function

void RtDoneZlib(int32_t mode, void * handle)

Definition at line 17 of Compression.cpp
Declaration at line 14 of Compression.hpp


RtEcho Function

void RtEcho()

Definition at line 167 of Screen.cpp
Declaration at line 17 of Screen.hpp


RtEndIterateDirectory Function

void RtEndIterateDirectory(int32_t directoryIterationHandle)

Definition at line 163 of Directory.cpp
Declaration at line 23 of Directory.hpp

Calls: cmajor::rt::DirectoryIterationTable::EndIterate , cmajor::rt::DirectoryIterationTable::Instance


RtEndProfiling Function

void RtEndProfiling()

Definition at line 138 of Profile.cpp
Declaration at line 13 of Profile.hpp


RtEndStaticInitCriticalSection Function

void RtEndStaticInitCriticalSection(void * staticClassId)

Definition at line 153 of Statics.cpp
Declaration at line 14 of Statics.hpp

Calls: cmajor::rt::StaticInitTable::EndCriticalSection , cmajor::rt::StaticInitTable::Instance


RtEndTraceFunction Function

void RtEndTraceFunction(int32_t traceFunctionId)

Definition at line 29 of Trace.cpp :
30 {
31     soulng::util::AddTraceEntry(soulng::util::EntryKind::endtraceFunctionId);
32 }


Declaration at line 15 of Trace.hpp


RtEndTracing Function

void RtEndTracing()

Definition at line 14 of Trace.cpp :
15 {
16     soulng::util::EndTracing();
17 }


Declaration at line 12 of Trace.hpp


RtEndUnitTest Function

void RtEndUnitTest(const char * testName, int32_t exitCode)

Definition at line 138 of UnitTest.cpp
Declaration at line 13 of UnitTest.hpp

Calls: cmajor::rt::UnitTestEngine::Done , cmajor::rt::UnitTestEngine::EndUnitTest , cmajor::rt::UnitTestEngine::Instance


RtEnqueueDestruction Function

void RtEnqueueDestruction(void * destructor, void * arg)

Definition at line 175 of Statics.cpp
Declaration at line 15 of Statics.hpp


RtEnterFunction Function

void RtEnterFunction(const char * functionName, const char * sourceFilePath)

Definition at line 65 of CallStack.cpp
Declaration at line 11 of CallStack.hpp

Calls: cmajor::rt::CallStack::Locations


RtEpsilon Function

double RtEpsilon()

Definition at line 57 of Math.cpp :
58 {
59     return std::numeric_limits<double>::epsilon();
60 }


Declaration at line 20 of Math.hpp


RtErase Function

void RtErase()

Definition at line 196 of Screen.cpp
Declaration at line 22 of Screen.hpp


RtExitFunction Function

void RtExitFunction()

Definition at line 96 of CallStack.cpp
Declaration at line 13 of CallStack.hpp

Calls: cmajor::rt::CallStack::Locations


RtFailAssertion Function

void RtFailAssertion(const char * assertion, const char * function, const char * sourceFilePath, int lineNumber)

Definition at line 131 of Error.cpp
Declaration at line 24 of Error.hpp


RtFreeConditionVariable Function

void RtFreeConditionVariable(void * nativeHandle)

Definition at line 20 of ConditionVariable.cpp :
21 {
22     if (nativeHandle)
23     {
24         delete static_cast<std::condition_variable_any*>(nativeHandle);
25     }
26 }


Declaration at line 12 of ConditionVariable.hpp


RtFreeMutex Function

void RtFreeMutex(void * nativeHandle)

Definition at line 15 of Mutex.cpp :
16 {
17     if (nativeHandle)
18     {
19         delete static_cast<std::mutex*>(nativeHandle);
20     }
21 }


Declaration at line 11 of Mutex.hpp


RtFreeRecursiveMutex Function

void RtFreeRecursiveMutex(void * nativeHandle)

Definition at line 40 of Mutex.cpp :
41 {
42     if (nativeHandle)
43     {
44         delete static_cast<std::recursive_mutex*>(nativeHandle);
45     }
46 }


Declaration at line 16 of Mutex.hpp


RtGetCallStack Function

const char * RtGetCallStack()

Definition at line 138 of Unwind.cpp :
139 {
140     if (GlobalUnwindInfo::Initialized())
141     {
142         return GlobalUnwindInfo::Instance().GetCallStack(static_cast<UnwindInfo*>(unwindList));
143     }
144     return "";
145 }


Declaration at line 13 of Unwind.hpp

Calls: GlobalUnwindInfo::GetCallStack , GlobalUnwindInfo::Initialized , GlobalUnwindInfo::Instance


RtGetCh Function

int RtGetCh()

Definition at line 251 of Screen.cpp
Declaration at line 29 of Screen.hpp


RtGetCurrentDate Function

void RtGetCurrentDate(int16_t* year, int8_t* month, int8_t* day)

Definition at line 22 of Time.cpp :
23 {
24     std::time_t currentTime;
25     std::time(&currentTime);
26     struct tm* localTime = nullptr;
27     localTime = std::localtime(&currentTime);
28     *year = 1900 + localTime->tm_year;
29     *month = 1 + localTime->tm_mon;
30     *day = localTime->tm_mday;
31 }


Declaration at line 14 of Time.hpp


RtGetCurrentDateTime Function

void RtGetCurrentDateTime(int16_t* year, int8_t* month, int8_t* day, int32_t* secs)

Definition at line 33 of Time.cpp :
34 {
35     std::time_t currentTime;
36     std::time(&currentTime);
37     struct tm* localTime = nullptr;
38     localTime = std::localtime(&currentTime);
39     *year = 1900 + localTime->tm_year;
40     *month = 1 + localTime->tm_mon;
41     *day = localTime->tm_mday;
42     *secs = localTime->tm_hour * 3600 + localTime->tm_min * 60 + localTime->tm_sec;
43 }


Declaration at line 15 of Time.hpp


RtGetCurrentTime Function

int64_t RtGetCurrentTime()

Definition at line 45 of Time.cpp :
46 {
47     std::time_t currentTime;
48     std::time(&currentTime);
49     return currentTime;
50 }


Declaration at line 16 of Time.hpp


RtGetError Function

const char * RtGetError(int32_t errorId)

Definition at line 150 of Error.cpp :
151 {
152     return cmajor::rt::GetError(errorId);
153 }


Declaration at line 25 of Error.hpp


RtGetException Function

void * RtGetException()

Definition at line 197 of Error.cpp :
198 {
199     return cmajor::rt::currentException;
200 }


Declaration at line 31 of Error.hpp


RtGetExceptionTypeId Function

void * RtGetExceptionTypeId()

Definition at line 202 of Error.cpp :
203 {
204     return EhGetExceptionTypeId();
205 }


Declaration at line 32 of Error.hpp


RtGetFiberData Function

void * RtGetFiberData()

Definition at line 24 of Fiber.cpp :
25 {
26     return soulng::util::GetFiberData();
27 }


Declaration at line 14 of Fiber.hpp


RtGetHardwareConcurrency Function

int32_t RtGetHardwareConcurrency()

Definition at line 270 of Thread.cpp
Declaration at line 11 of Thread.hpp


RtGetMaxYX Function

void RtGetMaxYX(int * rows, int * cols)

Definition at line 187 of Screen.cpp
Declaration at line 21 of Screen.hpp


RtGetNStr Function

void RtGetNStr(char * str, int size)

Definition at line 258 of Screen.cpp
Declaration at line 32 of Screen.hpp


RtGetNextDirectoryPath Function

const char * RtGetNextDirectoryPath(int32_t directoryIterationHandle)

Definition at line 158 of Directory.cpp
Declaration at line 22 of Directory.hpp

Calls: cmajor::rt::DirectoryIterationTable::Instance , cmajor::rt::DirectoryIterationTable::IterateDirectories


RtGetNextFilePath Function

const char * RtGetNextFilePath(int32_t directoryIterationHandle)

Definition at line 153 of Directory.cpp
Declaration at line 21 of Directory.hpp

Calls: cmajor::rt::DirectoryIterationTable::Instance , cmajor::rt::DirectoryIterationTable::IterateFiles


RtGetRandomSeed Function

uint32_t RtGetRandomSeed()

Definition at line 37 of Random.cpp
Declaration at line 11 of Random.hpp

Called by: cmajor::rt::MT::InitWithRandomSeed


RtGetRawCh Function

int RtGetRawCh()

Definition at line 235 of Screen.cpp
Declaration at line 30 of Screen.hpp


RtGetStackTrace Function

const char * RtGetStackTrace()

Definition at line 139 of CallStack.cpp
Declaration at line 15 of CallStack.hpp

Calls: cmajor::rt::CallStack::Locations


RtGetString Function

const char * RtGetString(int32_t stringHandle)

Definition at line 31 of Process.cpp :
 32 {
 33     return cmajor::rt::GetString(stringHandle);
 34 }


Declaration at line 13 of Process.hpp


RtGetYX Function

void RtGetYX(int * row, int * col)

Definition at line 211 of Screen.cpp
Declaration at line 25 of Screen.hpp


RtGreen Function

short RtGreen()

Definition at line 308 of Screen.cpp
Declaration at line 42 of Screen.hpp


RtHandleException Function

bool RtHandleException(void * exceptionTypeId)

Definition at line 188 of Error.cpp :
189 {
190     boost::multiprecision::uint128_t currentExceptionClassId = boost::multiprecision::uint128_t(cmajor::rt::currentExceptionClassId[0]) << 64 | cmajor::rt::currentExceptionClassId[1];
191     boost::uuids::uuid* exTypeId = reinterpret_cast<boost::uuids::uuid*>(exceptionTypeId);
192     boost::multiprecision::uint128_t exceptionClassId = cmajor::rt::GetClassId(*exTypeId);
193     bool handle = currentExceptionClassId % exceptionClassId == 0;
194     return handle;
195 }


Declaration at line 30 of Error.hpp


RtInflateZlib Function

int32_t RtInflateZlib(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void * handle)

Definition at line 32 of Compression.cpp
Declaration at line 17 of Compression.hpp


RtInitBZip2 Function

int32_t RtInitBZip2(int32_t mode, int32_t compressionLevel, int32_t compressionWorkFactor, void ** handle)

Definition at line 44 of Compression.cpp
Declaration at line 22 of Compression.hpp


RtInitPair Function

void RtInitPair(short n, short foregroundColor, short backgroundColor)

Definition at line 283 of Screen.cpp
Declaration at line 37 of Screen.hpp


RtInitRand Function

void RtInitRand(uint32_t seed)

Definition at line 166 of Random.cpp
Declaration at line 12 of Random.hpp


RtInitScreen Function

void RtInitScreen()

Definition at line 132 of Screen.cpp
Declaration at line 10 of Screen.hpp


RtInitZlib Function

int32_t RtInitZlib(int32_t mode, int32_t level, void ** handle)

Definition at line 12 of Compression.cpp
Declaration at line 13 of Compression.hpp


RtIsUserAssertionFailureFunctionSet Function

bool RtIsUserAssertionFailureFunctionSet()

Definition at line 121 of Error.cpp :
122 {
123     return userAssertionFailureFunction != nullptr;
124 }


Declaration at line 22 of Error.hpp


RtJoinThread Function

bool RtJoinThread(int32_t threadId)

Definition at line 307 of Thread.cpp
Declaration at line 16 of Thread.hpp

Calls: cmajor::rt::ThreadPool::Instance , cmajor::rt::ThreadPool::JoinThread


RtKeyPad Function

void RtKeyPad()

Definition at line 162 of Screen.cpp
Declaration at line 16 of Screen.hpp


RtLockMutex Function

void RtLockMutex(void * nativeHandle)

Definition at line 23 of Mutex.cpp :
24 {
25     std::mutex* mtx = static_cast<std::mutex*>(nativeHandle);
26     mtx->lock();
27 }


Declaration at line 12 of Mutex.hpp


RtLockRecursiveMutex Function

void RtLockRecursiveMutex(void * nativeHandle)

Definition at line 48 of Mutex.cpp :
49 {
50     std::recursive_mutex* mtx = static_cast<std::recursive_mutex*>(nativeHandle);
51     mtx->lock();
52 }


Declaration at line 17 of Mutex.hpp


RtMagenta Function

short RtMagenta()

Definition at line 323 of Screen.cpp
Declaration at line 45 of Screen.hpp


RtMemAlloc Function

void * RtMemAlloc(int64_t size)

Definition at line 255 of Memory.cpp
Declaration at line 11 of Memory.hpp


RtMemAllocInfo Function

void * RtMemAllocInfo(int64_t size, const char * info)

Definition at line 232 of Memory.cpp
Declaration at line 12 of Memory.hpp

Calls: cmajor::rt::DebugHeap::Allocate , cmajor::rt::DebugHeap::GetDebugHeap , cmajor::rt::DebugHeap::GetDebugSerial , cmajor::rt::DebugHeap::Instance , cmajor::rt::DebugHeap::NextSerial


RtMemFree Function

void RtMemFree(void * ptr)

Definition at line 268 of Memory.cpp
Declaration at line 14 of Memory.hpp


RtMemZero Function

void RtMemZero(void * ptr, int64_t size)

Definition at line 273 of Memory.cpp
Declaration at line 15 of Memory.hpp


RtMove Function

void RtMove(int row, int col)

Definition at line 220 of Screen.cpp
Declaration at line 26 of Screen.hpp


RtNoCBreak Function

void RtNoCBreak()

Definition at line 157 of Screen.cpp
Declaration at line 15 of Screen.hpp


RtNoEcho Function

void RtNoEcho()

Definition at line 172 of Screen.cpp
Declaration at line 18 of Screen.hpp


RtNoRaw Function

void RtNoRaw()

Definition at line 147 of Screen.cpp
Declaration at line 13 of Screen.hpp


RtNotifyAll Function

int32_t RtNotifyAll(void * nativeHandle)

Definition at line 42 of ConditionVariable.cpp
Declaration at line 14 of ConditionVariable.hpp


RtNotifyOne Function

int32_t RtNotifyOne(void * nativeHandle)

Definition at line 28 of ConditionVariable.cpp
Declaration at line 13 of ConditionVariable.hpp


RtNow Function

int64_t RtNow()

Definition at line 11 of Time.cpp :
12 {
13     return std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::steady_clock::now().time_since_epoch()).count();
14 }


Declaration at line 12 of Time.hpp


RtPi Function

double RtPi()

Definition at line 27 of Math.cpp :
28 {
29     return M_PI;
30 }


Declaration at line 14 of Math.hpp


RtPopUnwindInfo Function

void RtPopUnwindInfo(void * prevUnwindInfo)

Definition at line 32 of Unwind.cpp :
 33 {
 34     unwindList = prevUnwindInfo;
 35 }


Declaration at line 11 of Unwind.hpp


RtPow Function

double RtPow(double x, int32_t exponent)

Definition at line 12 of Math.cpp :
13 {
14     return std::pow(xexponent);
15 }


Declaration at line 11 of Math.hpp


RtPrintCallStack Function

void RtPrintCallStack(void * fileHandle)

Definition at line 117 of CallStack.cpp
Declaration at line 14 of CallStack.hpp

Calls: cmajor::rt::CallStack::Locations

Called by: cmajor::rt::DebugHeap::Allocate , cmajor::rt::DebugHeap::Dispose


RtProcessEof Function

bool RtProcessEof(void * process, int handle, int32_t& errorStringHandle)

Definition at line 99 of Process.cpp
Declaration at line 19 of Process.hpp


RtProcessExitCode Function

int RtProcessExitCode(void * process, int32_t& errorStringHandle)

Definition at line 70 of Process.cpp
Declaration at line 17 of Process.hpp


RtProcessReadLine Function

int32_t RtProcessReadLine(void * process, int handle, int32_t& errorStringHandle)

Definition at line 113 of Process.cpp
Declaration at line 20 of Process.hpp


RtProcessReadToEnd Function

int32_t RtProcessReadToEnd(void * process, int handle, int32_t& errorStringHandle)

Definition at line 128 of Process.cpp
Declaration at line 21 of Process.hpp


RtProcessRunning Function

bool RtProcessRunning(void * process, int32_t& errorStringHandle)

Definition at line 41 of Process.cpp
Declaration at line 15 of Process.hpp


RtProcessTerminate Function

bool RtProcessTerminate(void * process, int32_t& errorStringHandle)

Definition at line 84 of Process.cpp
Declaration at line 18 of Process.hpp


RtProcessWaitForExit Function

bool RtProcessWaitForExit(void * process, int32_t& errorStringHandle)

Definition at line 55 of Process.cpp
Declaration at line 16 of Process.hpp


RtProcessWriteLine Function

bool RtProcessWriteLine(void * process, const char * line, int32_t& errorStrHandle)

Definition at line 143 of Process.cpp
Declaration at line 22 of Process.hpp


RtProfileEndFunction Function

void RtProfileEndFunction(void * functionId)

Definition at line 150 of Profile.cpp
Declaration at line 15 of Profile.hpp

Calls: cmajor::rt::Profiler::EndFunction , cmajor::rt::Profiler::Instance


RtProfileStartFunction Function

void RtProfileStartFunction(void * functionId)

Definition at line 144 of Profile.cpp
Declaration at line 14 of Profile.hpp

Calls: cmajor::rt::Profiler::Instance , cmajor::rt::Profiler::StartFunction


RtPushUnwindInfo Function

void * RtPushUnwindInfo(void * unwindInfo)

Definition at line 25 of Unwind.cpp :
 26 {
 27     void* prevUnwindInfo = unwindList;
 28     unwindList = unwindInfo;
 29     return prevUnwindInfo;
 30 }


Declaration at line 10 of Unwind.hpp


RtRandom Function

uint32_t RtRandom()

Definition at line 171 of Random.cpp
Declaration at line 13 of Random.hpp


RtRandom64 Function

uint64_t RtRandom64()

Definition at line 176 of Random.cpp
Declaration at line 14 of Random.hpp


RtRaw Function

void RtRaw()

Definition at line 142 of Screen.cpp
Declaration at line 12 of Screen.hpp


RtRed Function

short RtRed()

Definition at line 313 of Screen.cpp
Declaration at line 43 of Screen.hpp


RtRefresh Function

void RtRefresh()

Definition at line 182 of Screen.cpp
Declaration at line 20 of Screen.hpp


RtRetvalStrBZip2 Function

const char * RtRetvalStrBZip2(int32_t retVal)

Definition at line 69 of Compression.cpp
Declaration at line 27 of Compression.hpp


RtRetvalStrZlib Function

const char * RtRetvalStrZlib(int32_t retVal)

Definition at line 37 of Compression.cpp
Declaration at line 18 of Compression.hpp


RtRunningOnWsl Function

bool RtRunningOnWsl()

Definition at line 333 of Screen.cpp
Declaration at line 47 of Screen.hpp


RtSetInputBZip2 Function

void RtSetInputBZip2(void * inChunk, uint32_t inAvail, void * handle)

Definition at line 54 of Compression.cpp
Declaration at line 24 of Compression.hpp


RtSetInputZlib Function

void RtSetInputZlib(void * inChunk, uint32_t inAvail, void * handle)

Definition at line 22 of Compression.cpp
Declaration at line 15 of Compression.hpp


RtSetLineNumber Function

void RtSetLineNumber(int32_t lineNumber)

Definition at line 76 of CallStack.cpp
Declaration at line 12 of CallStack.hpp

Calls: cmajor::rt::CallStack::Locations


RtSetThreadId Function

void RtSetThreadId(char threadId)

Definition at line 19 of Trace.cpp :
20 {
21     soulng::util::SetThreadId(threadId);
22 }


Declaration at line 13 of Trace.hpp


RtSetUnitTestAssertionResult Function

void RtSetUnitTestAssertionResult(int32_t assertionIndex, bool assertionResult, int32_t line)

Definition at line 146 of UnitTest.cpp
Declaration at line 14 of UnitTest.hpp

Calls: cmajor::rt::UnitTestEngine::Instance , cmajor::rt::UnitTestEngine::SetUnitTestAssertionResult


RtSetUnitTestException Function

void RtSetUnitTestException(const char * exceptionStr)

Definition at line 151 of UnitTest.cpp
Declaration at line 15 of UnitTest.hpp

Calls: cmajor::rt::UnitTestEngine::Instance , cmajor::rt::UnitTestEngine::SetUnitTestException


RtSetUserAssertionFailureFunction Function

void RtSetUserAssertionFailureFunction(AssertionFailureFunction userAssertionFailureFunc)

Definition at line 126 of Error.cpp :
127 {
128     userAssertionFailureFunction = userAssertionFailureFunc;
129 }


Declaration at line 23 of Error.hpp


RtSin Function

double RtSin(double angleRad)

Definition at line 37 of Math.cpp :
38 {
39     return std::sin(angleRad);
40 }


Declaration at line 16 of Math.hpp


RtSleep Function

void RtSleep(int64_t nanoseconds)

Definition at line 16 of Time.cpp :
17 {
18     std::chrono::nanoseconds duration{ nanoseconds };
19     std::this_thread::sleep_for(duration);
20 }


Declaration at line 13 of Time.hpp


RtSqrt Function

double RtSqrt(double x)

Definition at line 22 of Math.cpp :
23 {
24     return std::sqrt(x);
25 }


Declaration at line 13 of Math.hpp


RtStartColor Function

void RtStartColor()

Definition at line 278 of Screen.cpp
Declaration at line 36 of Screen.hpp


RtStartProfiling Function

void RtStartProfiling(int64_t numberOfPolymorphicClassIds, const uint64_t* polymorphicClassIdArray, int64_t numberOfStaticClassIds, const uint64_t* staticClassIdArray)

Definition at line 131 of Profile.cpp
Declaration at line 11 of Profile.hpp


RtStartThreadFunction Function

int32_t RtStartThreadFunction(void * function)

Definition at line 275 of Thread.cpp
Declaration at line 12 of Thread.hpp

Calls: cmajor::rt::ThreadPool::Instance , cmajor::rt::ThreadPool::StartThreadFunction


RtStartThreadFunctionWithParam Function

int32_t RtStartThreadFunctionWithParam(void * function, void * param)

Definition at line 281 of Thread.cpp
Declaration at line 13 of Thread.hpp

Calls: cmajor::rt::ThreadPool::Instance , cmajor::rt::ThreadPool::StartThreadFunction


RtStartThreadMethod Function

int32_t RtStartThreadMethod(void * classDelegate)

Definition at line 293 of Thread.cpp
Declaration at line 14 of Thread.hpp

Calls: cmajor::rt::ThreadPool::Instance , cmajor::rt::ThreadPool::StartThreadMethod


RtStartThreadMethodWithParam Function

int32_t RtStartThreadMethodWithParam(void * classDelegate, void * param)

Definition at line 300 of Thread.cpp
Declaration at line 15 of Thread.hpp

Calls: cmajor::rt::ThreadPool::Instance , cmajor::rt::ThreadPool::StartThreadMethod


RtStartUnitTest Function

void RtStartUnitTest(int32_t numAssertions, const char * unitTestFilePath, int64_t numberOfPolymorphicClassIds, const uint64_t* polymorphicClassIdArray, int64_t numberOfStaticClassIds, const uint64_t* staticClassIdArray)

Definition at line 130 of UnitTest.cpp
Declaration at line 11 of UnitTest.hpp

Calls: cmajor::rt::UnitTestEngine::Init , cmajor::rt::UnitTestEngine::Instance , cmajor::rt::UnitTestEngine::StartUnitTest


RtSwitchToFiber Function

void RtSwitchToFiber(void * fiber)

Definition at line 19 of Fiber.cpp :
20 {
21     soulng::util::SwitchToFiber(fiber);
22 }


Declaration at line 13 of Fiber.hpp


RtThisThreadId Function

int32_t RtThisThreadId()

Definition at line 317 of Thread.cpp
Declaration at line 17 of Thread.hpp


RtThrowCapturedException Function

void RtThrowCapturedException(void * exception, uint64_t exceptionClassIdHi, uint64_t exceptionClassIdLo)

Definition at line 180 of Error.cpp :
181 {
182     cmajor::rt::currentException = exception;
183     cmajor::rt::currentExceptionClassId[0] = exceptionClassIdHi;
184     cmajor::rt::currentExceptionClassId[1] = exceptionClassIdLo;
185     throw cmajor::eh::Exception();
186 }


Declaration at line 29 of Error.hpp


RtThrowException Function

void RtThrowException(void * exception, void * exceptionTypeId)

Definition at line 160 of Error.cpp :
161 {
162     cmajor::rt::currentException = exception;
163     boost::uuids::uuid* exTypeId = reinterpret_cast<boost::uuids::uuid*>(exceptionTypeId);
164     boost::multiprecision::uint128_t exceptionClassId = cmajor::rt::GetClassId(*exTypeId);
165     cmajor::rt::currentExceptionClassId[0] = static_cast<uint64_t>(exceptionClassId >> 64);
166     cmajor::rt::currentExceptionClassId[1] = static_cast<uint64_t>(exceptionClassId);
167     throw cmajor::eh::Exception();
168 }


Declaration at line 27 of Error.hpp


RtTranslateCh Function

int RtTranslateCh(int ch)

Definition at line 240 of Screen.cpp
Declaration at line 31 of Screen.hpp


RtUnlockMutex Function

void RtUnlockMutex(void * nativeHandle)

Definition at line 29 of Mutex.cpp :
30 {
31     std::mutex* mtx = static_cast<std::mutex*>(nativeHandle);
32     mtx->unlock();
33 }


Declaration at line 13 of Mutex.hpp


RtUnlockRecursiveMutex Function

void RtUnlockRecursiveMutex(void * nativeHandle)

Definition at line 54 of Mutex.cpp :
55 {
56     std::recursive_mutex* mtx = static_cast<std::recursive_mutex*>(nativeHandle);
57     mtx->unlock();
58 }


Declaration at line 18 of Mutex.hpp


RtWaitConditionVariable Function

int32_t RtWaitConditionVariable(void * nativeHandle, void * recursiveMutexHandle)

Definition at line 56 of ConditionVariable.cpp
Declaration at line 15 of ConditionVariable.hpp


RtWaitConditionVariableDuration Function

int32_t RtWaitConditionVariableDuration(void * nativeHandle, void * recursiveMutexHandle, int64_t nanoseconds)

Definition at line 77 of ConditionVariable.cpp
Declaration at line 16 of ConditionVariable.hpp


RtWhite Function

short RtWhite()

Definition at line 293 of Screen.cpp
Declaration at line 39 of Screen.hpp


RtWindowsMessage Function

void RtWindowsMessage(int32_t messageId)

Definition at line 34 of Trace.cpp :
35 {
36     soulng::util::AddTraceEntry(soulng::util::EntryKind::messagemessageId);
37 }


Declaration at line 16 of Trace.hpp


RtYellow Function

short RtYellow()

Definition at line 328 of Screen.cpp
Declaration at line 46 of Screen.hpp


SetKeys Function

void SetKeys()

Definition at line 39 of Screen.cpp


bz2_compress Function

int32_t bz2_compress(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void * handle, int32_t action)

Definition at line 83 of BZ2Interface.c :
 84 {
 85     bz_stream* strm = (bz_stream*)handle;
 86     strm->next_out = outChunk;
 87     strm->avail_out = outChunkSize;
 88     int ret = BZ2_bzCompress(strmaction);
 89     *have = outChunkSize - strm->avail_out;
 90     *outAvail = strm->avail_out;
 91     return ret;
 92 }


Declaration at line 17 of BZ2Interface.h


bz2_decompress Function

int32_t bz2_decompress(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void * handle)

Definition at line 94 of BZ2Interface.c :
 95 {
 96     bz_stream* strm = (bz_stream*)handle;
 97     strm->next_out = outChunk;
 98     strm->avail_out = outChunkSize;
 99     int32_t ret = BZ2_bzDecompress(strm);
100     *have = outChunkSize - strm->avail_out;
101     *outAvail = strm->avail_out;
102     *inAvail = strm->avail_in;
103     return ret;
104 }


Declaration at line 18 of BZ2Interface.h


bz2_done Function

void bz2_done(int32_t mode, void * handle)

Definition at line 57 of BZ2Interface.c
Declaration at line 15 of BZ2Interface.h


bz2_init Function

int32_t bz2_init(int32_t mode, int32_t compressionLevel, int32_t compressionWorkFactor, void ** handle)

Definition at line 15 of BZ2Interface.c
Declaration at line 14 of BZ2Interface.h


bz2_retval_str Function

const char * bz2_retval_str(int32_t retVal)

Definition at line 106 of BZ2Interface.c
Declaration at line 19 of BZ2Interface.h


bz2_set_input Function

void bz2_set_input(void * inChunk, uint32_t inAvail, void * handle)

Definition at line 76 of BZ2Interface.c :
 77 {
 78     bz_stream* strm = (bz_stream*)handle;
 79     strm->next_in = (char*)inChunk;
 80     strm->avail_in = inAvail;
 81 }


Declaration at line 16 of BZ2Interface.h


operator& Function

ConnectOptions operator&(ConnectOptions left, ConnectOptions right) inline

Definition at line 21 of Socket.hpp :
22 {
23     return ConnectOptions(int32_t(left) & int32_t(right));
24 }



operator& Function

OpenMode operator&(OpenMode left, OpenMode right) inline

Definition at line 30 of Io.hpp :
31 {
32     return OpenMode(uint8_t(left) & uint8_t(right));
33 }



operator| Function

ConnectOptions operator|(ConnectOptions left, ConnectOptions right) inline

Definition at line 26 of Socket.hpp :
27 {
28     return ConnectOptions(int32_t(left) | int32_t(right));
29 }



operator| Function

OpenMode operator|(OpenMode left, OpenMode right) inline

Definition at line 35 of Io.hpp :
36 {
37     return OpenMode(uint8_t(left) | uint8_t(right));
38 }



zlib_deflate Function

int32_t zlib_deflate(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, void * handle, int32_t flush)

Definition at line 80 of ZlibInterface.c :
 81 {
 82     z_stream* strm = (z_stream*)handle;
 83     strm->next_out = outChunk;
 84     strm->avail_out = outChunkSize;
 85     int ret = deflate(strmflush);
 86     *have = outChunkSize - strm->avail_out;
 87     *outAvail = strm->avail_out;
 88     return ret;
 89 }


Declaration at line 17 of ZlibInterface.h


zlib_done Function

void zlib_done(int32_t mode, void * handle)

Definition at line 54 of ZlibInterface.c
Declaration at line 15 of ZlibInterface.h


zlib_inflate Function

int32_t zlib_inflate(void * outChunk, uint32_t outChunkSize, uint32_t* have, uint32_t* outAvail, uint32_t* inAvail, void * handle)

Definition at line 91 of ZlibInterface.c :
 92 {
 93     z_stream* strm = (z_stream*)handle;
 94     strm->next_out = outChunk;
 95     strm->avail_out = outChunkSize;
 96     int ret = inflate(strmZ_NO_FLUSH);
 97     *have = outChunkSize - strm->avail_out;
 98     *outAvail = strm->avail_out;
 99     *inAvail = strm->avail_in;
100     return ret;
101 }


Declaration at line 18 of ZlibInterface.h


zlib_init Function

int32_t zlib_init(int32_t mode, int32_t level, void ** handle)

Definition at line 10 of ZlibInterface.c
Declaration at line 14 of ZlibInterface.h


zlib_retval_str Function

const char * zlib_retval_str(int32_t retVal)

Definition at line 103 of ZlibInterface.c
Declaration at line 19 of ZlibInterface.h


zlib_set_input Function

void zlib_set_input(void * inChunk, uint32_t inAvail, void * handle)

Definition at line 73 of ZlibInterface.c :
 74 {
 75     z_stream* strm = (z_stream*)handle;
 76     strm->next_in = inChunk;
 77     strm->avail_in = inAvail;
 78 }


Declaration at line 16 of ZlibInterface.h


top | up | prev | next