Commit 1f983ec3 authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed compilation of pthread-based parallel_for with gcc 4.4.3

parent 424c2bdd
...@@ -132,8 +132,14 @@ ...@@ -132,8 +132,14 @@
namespace cv namespace cv
{ {
ParallelLoopBody::~ParallelLoopBody() {} ParallelLoopBody::~ParallelLoopBody() {}
#if defined HAVE_PTHREADS && HAVE_PTHREADS
void parallel_for_pthreads(const cv::Range& range, const cv::ParallelLoopBody& body, double nstripes);
size_t parallel_pthreads_get_threads_num();
void parallel_pthreads_set_threads_num(int num);
#endif
} }
namespace namespace
{ {
#ifdef CV_PARALLEL_FRAMEWORK #ifdef CV_PARALLEL_FRAMEWORK
...@@ -301,7 +307,7 @@ void cv::parallel_for_(const cv::Range& range, const cv::ParallelLoopBody& body, ...@@ -301,7 +307,7 @@ void cv::parallel_for_(const cv::Range& range, const cv::ParallelLoopBody& body,
} }
#elif defined HAVE_PTHREADS #elif defined HAVE_PTHREADS
void parallel_for_pthreads(const Range& range, const ParallelLoopBody& body, double nstripes);
parallel_for_pthreads(range, body, nstripes); parallel_for_pthreads(range, body, nstripes);
#else #else
...@@ -361,8 +367,6 @@ int cv::getNumThreads(void) ...@@ -361,8 +367,6 @@ int cv::getNumThreads(void)
#elif defined HAVE_PTHREADS #elif defined HAVE_PTHREADS
size_t parallel_pthreads_get_threads_num();
return parallel_pthreads_get_threads_num(); return parallel_pthreads_get_threads_num();
#else #else
...@@ -424,8 +428,6 @@ void cv::setNumThreads( int threads ) ...@@ -424,8 +428,6 @@ void cv::setNumThreads( int threads )
#elif defined HAVE_PTHREADS #elif defined HAVE_PTHREADS
void parallel_pthreads_set_threads_num(int num);
parallel_pthreads_set_threads_num(threads); parallel_pthreads_set_threads_num(threads);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment