Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
This commit is contained in:
parent
c931ed976b
commit
8dac3bf3b1
7 changed files with 49 additions and 5 deletions
|
|
@ -39,6 +39,8 @@
|
|||
|
||||
typedef void (*ThreadCreateCallback)(void *p_userdata);
|
||||
|
||||
|
||||
|
||||
class Thread {
|
||||
public:
|
||||
|
||||
|
|
@ -65,15 +67,14 @@ protected:
|
|||
static void (*wait_to_finish_func)(Thread*);
|
||||
static Error (*set_name_func)(const String&);
|
||||
|
||||
friend class Main;
|
||||
friend class Main;
|
||||
|
||||
static ID _main_thread_id;
|
||||
static ID _main_thread_id;
|
||||
|
||||
|
||||
Thread();
|
||||
public:
|
||||
|
||||
|
||||
virtual ID get_ID() const=0;
|
||||
|
||||
static Error set_name(const String &p_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue