Rudiments: /home/dmuse/temp/rudiments/include/rudiments/thread.h Source File

Rudiments

thread.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_THREAD_H
5 #define RUDIMENTS_THREAD_H
6
7 #include <rudiments/private/threadincludes.h>
8
10 class RUDIMENTS_DLLSPEC thread {
11 public:
13 thread();
14
16 virtual ~thread();
17
20 bool setStackSize(size_t stacksize);
21
24 bool getStackSize(size_t *stacksize);
25
30 bool spawn(void *(*function)(void *),
31 void *arg, bool detached);
32
38 void exit(int32_t *status);
39
45 bool wait(int32_t *status);
46
50 bool detach();
51
53 bool raiseSignal(int32_t signum);
54
60 void retryFailedSpawn();
61
66 void dontRetryFailedSpawn();
67
70 bool getRetryFailedSpawn();
71
74 static bool supported();
75
76 #include <rudiments/private/thread.h>
77 };
78
79 #endif
thread
Definition: thread.h:10
thread::dontRetryFailedSpawn
void dontRetryFailedSpawn()
thread::raiseSignal
bool raiseSignal(int32_t signum)
thread::retryFailedSpawn
void retryFailedSpawn()
thread::supported
static bool supported()
thread::setStackSize
bool setStackSize(size_t stacksize)
thread::detach
bool detach()
thread::wait
bool wait(int32_t *status)
thread::thread
thread()
thread::~thread
virtual ~thread()
thread::getRetryFailedSpawn
bool getRetryFailedSpawn()
thread::spawn
bool spawn(void *(*function)(void *), void *arg, bool detached)
thread::getStackSize
bool getStackSize(size_t *stacksize)
thread::exit
void exit(int32_t *status)