23 #include "ocilibcpp/types.hpp"
OCI_SYM_PUBLIC const void *OCI_API OCI_HandleGetThreadID(OCI_Thread *thread)
Return OCI Thread ID (OCIThreadId *) of an OCILIB OCI_Thread object.
OCI_SYM_PUBLIC boolean OCI_API OCI_ThreadFree(OCI_Thread *thread)
Destroy a thread object.
static void Join(ThreadHandle handle)
Join the given thread.
static T Check(T result)
Internal usage. Checks if the last OCILIB function call has raised an error. If so, it raises a C++ exception using the retrieved error handle.
static void Run(ThreadHandle handle, ThreadProc func, AnyPointer arg)
Execute the given routine within the given thread.
OCI_SYM_PUBLIC boolean OCI_API OCI_ThreadJoin(OCI_Thread *thread)
Join the given thread.
const void * ThreadId
Thread Unique ID.
void * AnyPointer
Alias for the generic void pointer.
static void Destroy(ThreadHandle handle)
Destroy a thread.
OCI_SYM_PUBLIC OCI_Thread *OCI_API OCI_ThreadCreate(void)
Create a Thread object.
OCI_Thread * ThreadHandle
Alias for an OCI_Thread pointer.
POCI_THREAD ThreadProc
Thread callback.
OCI_SYM_PUBLIC boolean OCI_API OCI_ThreadRun(OCI_Thread *thread, POCI_THREAD proc, void *arg)
Execute the given routine within the given thread object.
static ThreadId GetThreadId(ThreadHandle handle)
Return the system Thread ID of the given thread handle.
static ThreadHandle Create()
Create a Thread.