|
Re: Semaphores and Synchronized's
Well Maybe you could have a thread that takes all the info from the camera, or some other processor intensive task and put it into a thread. Then you could use a semaphore to lock out the angle offset, or some other data. Then when the main thread goes to access the data when it is being written to by the seperate thread, you wont get invalid data because it is only half written to.
Last edited by Joohoo : 31-01-2009 at 12:40.
|