blob: 4f005ace14666eb0bc7f17dceb52cf7a69736740 [file] [log] [blame]
//===---------------- Threads.h - Micro-vm threads ------------------------===//
//
// The Micro Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MVM_THREAD_H
#define MVM_THREAD_H
#include "mvm/GC/GC.h"
namespace mvm {
class Thread {
public:
static void yield(void);
static void yield(unsigned int *);
static int self(void);
static void initialise(void);
static int kill(int tid, int signo);
static void exit(int value);
static int start(int *tid, int (*fct)(void *), void *arg);
};
} // end namespace mvm
#endif // MVM_THREAD_H