diff options
| author | bhgv <bhgv.empire@gmail.com> | 2020-06-12 21:22:37 +0300 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2020-06-12 21:22:37 +0300 |
| commit | 29cea60e3fae0a5e6b758aab62bfc5d160153576 (patch) | |
| tree | 2211a784b43e1e81e421d11287f75a26186e65a6 /libiot | |
| parent | e55eda70d7594f90823221af61233792e7a0f4e4 (diff) | |
sup. FreeRTOS riscV-64 (k210 cpu). 5th step
Diffstat (limited to 'libiot')
| -rw-r--r-- | libiot/freertos/adds.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libiot/freertos/adds.c b/libiot/freertos/adds.c index f2beaa6..4703cdc 100644 --- a/libiot/freertos/adds.c +++ b/libiot/freertos/adds.c @@ -64,11 +64,11 @@ void panic(const char*); #define THREAD_LOCAL_STORAGE_POINTER_ID 0 -// Reference to lua_thread, which is created in app_main -extern pthread_t lua_thread; +//// Reference to lua_thread, which is created in app_main +//extern pthread_t lua_thread; -// Global state -static lua_State *gL = NULL; +//// Global state +//static lua_State *gL = NULL; static int compare(const void *a, const void *b) { if (((task_info_t *)a)->task_type < ((task_info_t *)b)->task_type) { @@ -144,10 +144,10 @@ void uxSetLuaState(lua_State* L) { lua_rtos_tcb->lthread->L = L; } - // If this is the lua thread, store state in global state - if ((uxGetThreadId() == lua_thread) && (gL == NULL)) { - gL = L; - } +// // If this is the lua thread, store state in global state +// if ((uxGetThreadId() == lua_thread) && (gL == NULL)) { +// gL = L; +// } } lua_State* pvGetLuaState() { @@ -163,9 +163,9 @@ lua_State* pvGetLuaState() { } } - if (L == NULL) { - L = gL; - } +// if (L == NULL) { +// L = gL; +// } return L; } |
