diff options
Diffstat (limited to 'source/modules/asura-utils/threading/binding/_thread.cpp')
-rw-r--r-- | source/modules/asura-utils/threading/binding/_thread.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/modules/asura-utils/threading/binding/_thread.cpp b/source/modules/asura-utils/threading/binding/_thread.cpp index a5aff03..ad2fb7f 100644 --- a/source/modules/asura-utils/threading/binding/_thread.cpp +++ b/source/modules/asura-utils/threading/binding/_thread.cpp @@ -23,7 +23,7 @@ namespace AsuraEngine { "IsStopped", _IsStopped }, { "IsCurrent", _IsCurrent }, { "Sleep", _Sleep }, - { "Post", _Post }, + { "Dispatch", _Dispatch }, { "GetName", _GetName }, { "GetType", _GetType }, { "GetState", _GetState } @@ -37,7 +37,7 @@ namespace AsuraEngine { "IMMEDIATE", THREAD_TYPE_IMMEDIATE } ); LUAX_REGISTER_ENUM(state, "EThreadState", - { "READY", THREAD_STATE_IDLE }, + { "IDLE", THREAD_STATE_IDLE }, { "RUNNING", THREAD_STATE_RUNNING }, { "PAUSED", THREAD_STATE_PAUSED }, { "STOPPED", THREAD_STATE_STOPPED } @@ -165,11 +165,11 @@ namespace AsuraEngine return 0; } - // thread:Post() - LUAX_IMPL_METHOD(Thread, _Post) + // thread:Dispatch() + LUAX_IMPL_METHOD(Thread, _Dispatch) { LUAX_PREPARE(L, Thread); - self->Post(); + self->Dispatch(); return 0; } |