thread.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_THREAD_H
#define RUDIMENTS_THREAD_H
#include <rudiments/private/threadincludes.h>
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);
void retryFailedSpawn();
void dontRetryFailedSpawn();
bool getRetryFailedSpawn();
static bool supported();
#include <rudiments/private/thread.h>
};
#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)