Hello,
I'm trying to use the Boost Threads library to help me implement a
background loading system for a game I'm writing.
I want to enqueue load requests while the main game thread is running, and
have a separate thread load the data and pass back the appropriate objects.
Currently when I enqueue a new request, I notify a 'something to do'
condition, which my loading thread waits on. The trouble is, when I notify
it, the loader could be loading in the background, and has a lock on the
mutex connected with the condition.
Would anyone be able to offer me any advice on how to solve this?
Many thanks,
Peter
P.S. Please find attached my current implementation.
begin 666 loader.cpp
M(VEN8VQU9&4@(FQO861E