@rjlwest wrote:
I've been trying to chase down this crash bug I'm getting, every time I think I have a lead, it turns out I don't. I have most of the functionality in my program switched off whilst I'm trying to find it. it happens when I render audio, after I have started a thread to load a wav file.
A lead I have at the moment is the crash will occur in the draw thread, but in one of my poco threads, execution can sometimes currently be on ofGetElapsedtimeMicros which I'm quite fond of using and use it in almost every thread. I'm on mac osx so the eventual function call is to clock_get_time(cs, &now); in clock.h
Would it be a problem to call ofGetElapsedtimeMicros from different threads? is clock_get_time simply part of the macosx sdk and can I rely on that being thread safe?
Posts: 8
Participants: 3