23 #include "ocilibcpp/types.hpp"
POCI_THREAD ThreadProc
Thread callback.
static ThreadHandle Create()
Create a Thread.
static void Join(ThreadHandle handle)
Join the given thread.
static void Destroy(ThreadHandle handle)
Destroy a thread.
static void Run(ThreadHandle handle, ThreadProc func, AnyPointer arg)
Execute the given routine within the given thread.
static ThreadId GetThreadId(ThreadHandle handle)
Return the system Thread ID of the given thread handle.
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_ThreadRun(OCI_Thread *thread, POCI_THREAD proc, void *arg)
Execute the given routine within the given thread object.
OCI_SYM_PUBLIC OCI_Thread *OCI_API OCI_ThreadCreate(void)
Create a Thread object.
OCI_SYM_PUBLIC boolean OCI_API OCI_ThreadJoin(OCI_Thread *thread)
Join the given thread.
OCI_SYM_PUBLIC boolean OCI_API OCI_ThreadFree(OCI_Thread *thread)
Destroy a thread object.
static T Check(T result)
Internal usage. Checks if the last OCILIB function call has raised an error. If so,...
const void * ThreadId
Thread Unique ID.
void * AnyPointer
Alias for the generic void pointer.
OCI_Thread * ThreadHandle
Alias for an OCI_Thread pointer.