thread.h
// Copyright (c) 2013 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_THREAD_H
#define RUDIMENTS_THREAD_H
#include <rudiments/private/threadincludes.h>
class threadprivate;
class RUDIMENTS_DLLSPEC thread {
public:
thread();
virtual ~thread();
bool setStackSize(size_t stacksize);
bool getStackSize(size_t *stacksize);
bool spawn(void *(*function)(void *),
void *arg, bool detached);
void exit(int32_t *status);
bool wait(int32_t *status);
bool detach();
bool raiseSignal(int32_t signum);
static bool supportsThreads();
void retryFailedSpawn();
void dontRetryFailedSpawn();
bool getRetryFailedSpawn();
#include <rudiments/private/thread.h>
};
#endif
thread
Definition: thread.h:12