This class implements an approximation of java.util.Thread.
More...
#include <thread.h>
|
| Thread () |
| Create new instance.
|
|
| ~Thread () |
| Destructor.
|
|
void | run (Runnable start, void *data) |
| Runs the specified method on a newly created thread.
|
|
void | join () |
|
bool | isActive () |
|
void | interrupt () |
| Sets interrupted status to true.
|
|
bool | isAlive () |
|
bool | isCurrentThread () const |
|
void | ending () |
|
|
static void | sleep (int millis) |
| Causes the currently executing thread to sleep for the specified number of milliseconds. More...
|
|
static void | currentThreadInterrupt () |
| Sets interrupted status for current thread to true.
|
|
static bool | interrupted () |
| Tests if the current thread has been interrupted and sets the interrupted status to false.
|
|
|
void *LOG4CXX_THREAD_FUNC | ThreadLaunch::launcher (apr_thread_t *thread, void *data) |
|
This class implements an approximation of java.util.Thread.
◆ sleep()
static void log4cxx::helpers::Thread::sleep |
( |
int |
millis | ) |
|
|
static |
Causes the currently executing thread to sleep for the specified number of milliseconds.
- Parameters
-
- Exceptions
-
Interrupted | Exception if the thread is interrupted. |
The documentation for this class was generated from the following file: