forked from HaxeFoundation/hxcpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathThread.hpp
More file actions
37 lines (30 loc) · 651 Bytes
/
Copy pathThread.hpp
File metadata and controls
37 lines (30 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(hx, thread, Thread)
namespace hx
{
namespace thread
{
struct Thread_obj : public hx::Object
{
using CreateFunction =
#if (HXCPP_API_LEVEL >= 500)
Callable<void(void)>;
#else
Dynamic;
#endif
static Thread create(CreateFunction);
static Thread current();
static int id();
virtual String getName() = 0;
virtual void setName(const String& name) = 0;
virtual String toString() override = 0;
virtual void __Mark(HX_MARK_PARAMS) override = 0;
#ifdef HXCPP_VISIT_ALLOCS
virtual void __Visit(HX_VISIT_PARAMS) override = 0;
#endif
};
}
}