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
10class RUDIMENTS_DLLSPEC thread : virtual public object {
11 public:
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
39
46
50 bool detach();
51
54
63
67
72 static bool isSupported();
73
83 static bool isReliable();
84
85 #include <rudiments/private/thread.h>
86};
87
88#endif
Definition avltree.h:11
Definition object.h:10
Definition thread.h:10
bool raiseSignal(int32_t signum)
static bool isReliable()
bool setStackSize(size_t stacksize)
bool detach()
bool wait(int32_t *status)
virtual ~thread()
void setRetryFailedSpawn(bool retry)
bool getRetryFailedSpawn()
bool spawn(void *(*function)(void *), void *arg, bool detached)
bool getStackSize(size_t *stacksize)
static bool isSupported()
void exit(int32_t *status)