I've been searching around, trying to find an answer. I know that I can create multiple libmagic instances, one for each thread, and that is thread-safe. But can I have a single instance shared between multiple threads?
Asked
Active
Viewed 1,087 times
1 Answers
3
No, you cannot share libmagic handle/descriptor between two or more threads, in this sense libmagic is not threadsafe.

Mark
- 46
- 1
-
If I have a single handle/descriptor for each thread, am I okay? – vy32 Jun 09 '12 at 10:58