summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/wavm/Include/WAVM/Platform/Thread.h
blob: dcfc57bf7d9d2f193c1e0bb51ef8c1276497c224 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "WAVM/Inline/BasicTypes.h"
#include "WAVM/Platform/Defines.h"

namespace WAVM { namespace Platform {
	struct Thread;
	WAVM_API Thread* createThread(Uptr numStackBytes, I64 (*threadEntry)(void*), void* argument);
	WAVM_API void detachThread(Thread* thread);
	WAVM_API I64 joinThread(Thread* thread);

	WAVM_API Uptr getNumberOfHardwareThreads();

	WAVM_API void yieldToAnotherThread();
}}