• Alexander Alekhin's avatar
    core: fix pthreads performance · c49d5d52
    Alexander Alekhin authored
    OpenCV pthreads-based implementation changes:
    - rework worker threads pool, allow to execute job by the main thread too
    - rework synchronization scheme (wait for job completion, threads 'pong' answer is not required)
    - allow "active wait" (spin) by worker threads and by the main thread
    - use _mm_pause() during active wait (support for Hyper-Threading technology)
    - use sched_yield() to avoid preemption of still working other workers
    - don't use getTickCount()
    - optional builtin thread pool profiler (disabled by compilation flag)
    c49d5d52
Name
Last commit
Last update
.github Loading commit data...
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...