OCILIB (C and C++ Driver for Oracle)
4.6.3
|
static class allowing to manipulate threads More...
#include <ocilib.hpp>
Public Types | |
typedef POCI_THREAD | ThreadProc |
Thread callback. | |
Static Public Member Functions | |
static ThreadHandle | Create () |
Create a Thread. More... | |
static void | Destroy (ThreadHandle handle) |
Destroy a thread. More... | |
static void | Run (ThreadHandle handle, ThreadProc func, void *args) |
Execute the given routine within the given thread. More... | |
static void | Join (ThreadHandle handle) |
Join the given thread. More... | |
static ThreadId | GetThreadId (ThreadHandle handle) |
Return the system Thread ID of the given thread handle. More... | |
static class allowing to manipulate threads
This class wraps the OCILIB object handle OCI_Thread and its related methods
Definition at line 1333 of file ocilib.hpp.
|
inlinestatic |
Create a Thread.
Definition at line 1333 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_ThreadCreate().
|
inlinestatic |
Destroy a thread.
handle | - Thread handle |
Definition at line 1338 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_ThreadFree().
|
inlinestatic |
Execute the given routine within the given thread.
handle | - Thread handle |
func | - routine to execute |
args | - parameter to pass to the routine |
Definition at line 1343 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_ThreadRun().
|
inlinestatic |
Join the given thread.
handle | - Thread handle |
Definition at line 1348 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_ThreadJoin().
|
inlinestatic |
Return the system Thread ID of the given thread handle.
handle | - Thread handle |
Definition at line 1353 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_HandleGetThreadID().