Compare commits

...

4 Commits

Author SHA1 Message Date
e16305d3dd Merge pull request 'fix/reinit' () from fix/reinit into master
Reviewed-on: 
2025-04-02 13:31:15 +00:00
tqcq
acacfbe188 fix crash on init 2025-04-02 19:33:43 +08:00
86f52567b7 Merge pull request 'fix reinit' () from fix/reinit into develop
Reviewed-on: 
2025-03-06 09:21:03 +00:00
tqcq
471c2c1756 fix reinit 2025-03-06 17:20:06 +08:00

@ -134,13 +134,13 @@ TerminateBasicRuntime()
std::mutex init_lock;
std::condition_variable init_cv;
std::thread *lib_thread;
const char *my_argv[1] = {"unknown"};
void
Init(int argc, char **argv, std::function<int(int, char **)> cb)
{
std::unique_lock<std::mutex> _(init_lock);
assert(lib_thread && "ReInitialize!!!");
const char *my_argv[1] = {"unknown"};
assert(!lib_thread && "ReInitialize!!!");
if (!argv) {
argc = 1;