Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Is al_get_time thread safe?

This thread is locked; no one can reply to it. rss feed Print
Is al_get_time thread safe?
archlinka
Member #17,215
December 2019

Hi, quite a simple question :)

Is allegro method al_get_time() thread safe?

Thanks for the answer.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

archlinka - I looked and on Windows, the time function is protected by a mutex, so it should be thread safe there. I didn't look at any other platforms.

unix calls clock_gettime, so you have to check if that is thread safe. It is not protected by a mutex.

Go to: