I have been working on a C++ project that uses SDL, and wonder if it is safe to call SDL_Delay concurrently from different threads or if I need to write a wrapper to serialize access to the function. I rather avoid any overhead, as the delays I need are very small.
Has anyone have tried this?
I am using c++ on OS X and pthreads, and need the code to be portable.
我对SDL_Delay没有任何直接的经验,但是根据:根据本文档,它不是线程安全的,您可能应该使用包装器。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.