Ryan Hagan
August 31st, 2000, 12:07 PM
Greetings,
I'm working with an engine library that is using a custom made shared memory algorithm. We have access to the shared memory in our code but we don't have the code for the library.
The problem we're running across right now is that in order to tell if a new message has come from the engine, we have to sit in a loop and continuously check the shared mem to see if it's been altered. That eats up 99% of the CPU time and there's nothing left for the engine for the Windows GUI.
Does anyone have any suggestions on how we can solve this problem? I wouldn't imagine it's too tough, but the answer seems to evade us at every turn. Thanks for the help!
--
Ryan Hagan
IncaGold USA
http://www.incagold.com/
I'm working with an engine library that is using a custom made shared memory algorithm. We have access to the shared memory in our code but we don't have the code for the library.
The problem we're running across right now is that in order to tell if a new message has come from the engine, we have to sit in a loop and continuously check the shared mem to see if it's been altered. That eats up 99% of the CPU time and there's nothing left for the engine for the Windows GUI.
Does anyone have any suggestions on how we can solve this problem? I wouldn't imagine it's too tough, but the answer seems to evade us at every turn. Thanks for the help!
--
Ryan Hagan
IncaGold USA
http://www.incagold.com/