Advertisement

Is this even possible?

Started by September 10, 2000 08:35 PM
11 comments, last by AnCcE 24 years, 4 months ago
Kensai: what you just described is almost exactly what I''ve been thinking about implementing. Do you know if there''s an API SleepThread or StopThread function that temporarily halts a thread until you call RestartThread or something?

Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Couldn''t you use the CreateMutex() and WaitForSingleObject() API calls? They are apparently used extensively in COM/DCOM programming.
Regards,JumpsterSemper Fi
Advertisement
quote:
Kensai: what you just described is almost exactly what I''ve been thinking about implementing. Do you know if there''s an API SleepThread or StopThread function that temporarily halts a thread until you call RestartThread or something?

Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.


Hi all.

Grib: Not bad for someone who has hardly done more than just drawing a few lines in 3D, eh? hehehe (Basically all of my experiency is in 2D games).

And yes AnCcE, there is a win API function to that effect, but you need to specify how much time you want to make you tread "Sleep" (the name of the function).

What you need (and this is required if you want to implement Kensai''s solution) is create a synchroniztion object as Jumpster says, and the use the function "WaitForSingleObject" or "WaitForMultipleObject".

Topgoro


;You are not a real programmer until you start all your sentences with a semicolon
We emphasize "gotoless" programming in this company, so constructs like "goto hell" are strictly forbidden.

This topic is closed to new replies.

Advertisement