AlexeyAB / yolo-windows

a yolo windows version(for object detection)
71 stars 58 forks source link

How to make yolo cpp dll thread safe #13

Closed Msmhasani closed 4 years ago

Msmhasani commented 4 years ago

Hello

I'm using yolo_cpp_dll_no_gpu.dll in a secondary c++ project. If I have one thread using this Dll every thing is OK, but how can I use darknet functions in multiple threads?

I'm using c++ and not much familiar with C. I tried to make an Interface c++ object, in which I can use the dll in multiple threads but, only with mutexes and lockes, but of course the performance will be compromised.

Thanks.