简体   繁体   中英

How to keep thread running after it loose scope

I am tring to make a DLL

My Exe Program calls the functions of DLL

In a certain function, i create a thread. The thread will take 30-40 minutes to finish

Meanwhile i have other things to do in Exe

在此处输入图像描述

We cannot do anything with the exe program. Actually it is a game server, which has the option to load plugins(dlls) and squirrel embedded so that we can call functions of dlls from script of game server.

I used winapi's CreateThread function and i got what was wanted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM