diff options
| author | 彭宣正 <[email protected]> | 2022-09-05 19:06:35 +0800 |
|---|---|---|
| committer | 彭宣正 <[email protected]> | 2022-09-05 19:15:57 +0800 |
| commit | c022c48a3b4abea0577faf4f3f625ee69684e454 (patch) | |
| tree | 3908c9d3d8b1449d1611245ebd5c2cb8c5efc1f0 /example/multithread.cpp | |
| parent | 2a0f0af98db078dc159a138ef8d25048807222ea (diff) | |
✨ feat(TSG-11870): 修改数据类型string为buff
Diffstat (limited to 'example/multithread.cpp')
| -rw-r--r-- | example/multithread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/multithread.cpp b/example/multithread.cpp index a26d656..755ebb3 100644 --- a/example/multithread.cpp +++ b/example/multithread.cpp @@ -73,7 +73,7 @@ void *lua_function(void *ptr) char buff[1024]; struct elua_data output; output.len = 1024; - output.string = buff; + output.buff = buff; output.type = STRING; userdata_t *userdata = (userdata_t *)ptr; @@ -113,7 +113,7 @@ void *lua_function(void *ptr) printf("[C][thread_id:%d]:elua_execute_script failed...\n", thread_id); return (void *)"cache exec failed"; } - debuginfo(thread_id, output.string, output.len, output.type); + debuginfo(thread_id, output.buff, output.len, output.type); printf("[C][thread_id:%d]:elua_execute_script success...\n", thread_id); printf("[C][thread_id:%d]:elua_cache_script_file start...\n", thread_id); @@ -132,7 +132,7 @@ void *lua_function(void *ptr) printf("[C][thread_id:%d]:elua_execute_script failed...\n", thread_id); return (void *)"cache exec failed"; } - debuginfo(thread_id, output.string, output.len, output.type); + debuginfo(thread_id, output.buff, output.len, output.type); printf("[C][thread_id:%d]:elua_execute_script success...\n", thread_id); printf("[C][thread_id:%d]:elua_cleanup_script start...\n", thread_id); |
