![]() |
OCILIB (C and C++ Driver for Oracle)
4.7.7
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
static class allowing to manipulate threads More...
#include <types.hpp>
Public Types | |
| typedef POCI_THREAD | ThreadProc |
| Thread callback. | |
Static Public Member Functions | |
| static ThreadHandle | Create () |
| Create a 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 void | Join (ThreadHandle handle) |
| Join the given thread. | |
| static ThreadId | GetThreadId (ThreadHandle handle) |
| Return the system Thread ID of the given thread handle. | |
static class allowing to manipulate threads
This class wraps the OCILIB object handle OCI_Thread and its related methods
|
inlinestatic |
Create a Thread.
Definition at line 28 of file Thread.hpp.
References ocilib::core::Check(), and OCI_ThreadCreate().
|
inlinestatic |
Destroy a thread.
| handle | - Thread handle |
Definition at line 33 of file Thread.hpp.
References ocilib::core::Check(), and OCI_ThreadFree().
|
inlinestatic |
Execute the given routine within the given thread.
| handle | - Thread handle |
| func | - routine to execute |
| arg | - parameter to pass to the routine |
Definition at line 38 of file Thread.hpp.
References ocilib::core::Check(), and OCI_ThreadRun().
|
inlinestatic |
Join the given thread.
| handle | - Thread handle |
Definition at line 43 of file Thread.hpp.
References ocilib::core::Check(), and OCI_ThreadJoin().
|
inlinestatic |
Return the system Thread ID of the given thread handle.
| handle | - Thread handle |
Definition at line 48 of file Thread.hpp.
References ocilib::core::Check(), and OCI_HandleGetThreadID().