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 
61 
67 
71 
74  static bool supported();
75 
76  #include <rudiments/private/thread.h>
77 };
78 
79 #endif
Definition: thread.h:10
void dontRetryFailedSpawn()
bool raiseSignal(int32_t signum)
void retryFailedSpawn()
static bool supported()
bool setStackSize(size_t stacksize)
bool detach()
bool wait(int32_t *status)
virtual ~thread()
bool getRetryFailedSpawn()
bool spawn(void *(*function)(void *), void *arg, bool detached)
bool getStackSize(size_t *stacksize)
void exit(int32_t *status)