diff options
| author | ruki <[email protected]> | 2025-04-16 22:35:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | 8bf1576c641f3b68bb43c50929cdcec8ee73ff86 (patch) | |
| tree | cecd4927e8466e076687f6b23d60f00a06023aae /core/src/xmake/thread/thread_init.c | |
| parent | d985de5de38fb0d041f8e9182c076575603b5b4f (diff) | |
add native thread stub
Diffstat (limited to 'core/src/xmake/thread/thread_init.c')
| -rw-r--r-- | core/src/xmake/thread/thread_init.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/core/src/xmake/thread/thread_init.c b/core/src/xmake/thread/thread_init.c new file mode 100644 index 000000000..758380b8a --- /dev/null +++ b/core/src/xmake/thread/thread_init.c @@ -0,0 +1,42 @@ +/*!A cross-platform build utility based on Lua + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Copyright (C) 2015-present, TBOOX Open Source Group. + * + * @author ruki + * @file thread_init.c + * + */ + +/* ////////////////////////////////////////////////////////////////////////////////////// + * trace + */ +#define TB_TRACE_MODULE_NAME "thread" +#define TB_TRACE_MODULE_DEBUG (0) + +/* ////////////////////////////////////////////////////////////////////////////////////// + * includes + */ +#include "prefix.h" + +/* ////////////////////////////////////////////////////////////////////////////////////// + * implementation + */ +tb_int_t xm_thread_init(lua_State* lua) +{ + // check + tb_assert_and_check_return_val(lua, 0); + + return 0; +} |
