Rudiments
include
rudiments
thread.h
1
// Copyright (c) 2013 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
Generated on Tue Sep 11 2018 11:36:51 for Rudiments by
1.8.13