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();
void setFunction(void *(*function)(void *), void *arg);
bool setStackSize(size_t stacksize);
bool getStackSize(size_t *stacksize);
bool create();
void exit(int32_t *status);
bool join(int32_t *status);
bool detach();
static bool supportsThreads();
#include <rudiments/private/thread.h>
};
#endif