Commit 84e0f0e9 authored by Davis King's avatar Davis King

Added a function to determine how many threads a structural_svm_problem_threaded

object is going to use.
parent 39c9a234
...@@ -34,6 +34,9 @@ namespace dlib ...@@ -34,6 +34,9 @@ namespace dlib
tp(num_threads) tp(num_threads)
{} {}
unsigned long get_num_threads (
) const { return tp.num_threads_in_pool(); }
private: private:
struct binder struct binder
......
...@@ -40,8 +40,15 @@ namespace dlib ...@@ -40,8 +40,15 @@ namespace dlib
/*! /*!
ensures ensures
- this object is properly initialized - this object is properly initialized
- This object will use num_threads threads at a time to call the - #get_num_threads() == num_threads
separation_oracle() function. !*/
unsigned long get_num_threads (
) const;
/*!
ensures
- Returns the number of threads which will be used to make concurrent
calls to the separation_oracle() function.
!*/ !*/
}; };
......
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