If you need multiple threads to access such a module, you can use semaphores and lots of programming discipline to control access to it.
如果一定要使用一个非线程安全的模块,可以通过只使用一个,或只在一个线程中使用来保护。
If you need multiple threads to access such a module, you can use semaphores and lots of programming discipline to control access to it.
如果一定要使用一个非线程安全的模块,可以通过只使用一个,或只在一个线程中使用来保护。
应用推荐