Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
84e0f0e9
Commit
84e0f0e9
authored
May 19, 2011
by
Davis King
Browse files
Added a function to determine how many threads a structural_svm_problem_threaded
object is going to use.
parent
39c9a234
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
dlib/svm/structural_svm_problem_threaded.h
dlib/svm/structural_svm_problem_threaded.h
+3
-0
dlib/svm/structural_svm_problem_threaded_abstract.h
dlib/svm/structural_svm_problem_threaded_abstract.h
+9
-2
No files found.
dlib/svm/structural_svm_problem_threaded.h
View file @
84e0f0e9
...
@@ -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
...
...
dlib/svm/structural_svm_problem_threaded_abstract.h
View file @
84e0f0e9
...
@@ -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.
!*/
!*/
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment