lua-users home
lua-l archive

Re: Is there an easier way to cancel threads???

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,
> I have used QueueUserAPC() in C++ thread classes,
> it works well in combination with Overlapped IO and
> SleepEx(). This does not completely solve the
> problem, but it goes close.
I agree. We would still have a problem with threads that are
blocked on system calls, such as recv/send. Those would not
awake with QueueUserAPC.
Unless they are overlapped.
:) Right, but then they are not blocking... :)
[]s,
Diego.

AltStyle によって変換されたページ (->オリジナル) /