From b9e907a9dc719bfb079f3f50dac5972b2aaebddf Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 4 Feb 2013 17:43:06 -0500 Subject: [PATCH] clarified spec --- dlib/svm/structural_svm_problem_threaded_abstract.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlib/svm/structural_svm_problem_threaded_abstract.h b/dlib/svm/structural_svm_problem_threaded_abstract.h index c40926e42..f882b8b7b 100644 --- a/dlib/svm/structural_svm_problem_threaded_abstract.h +++ b/dlib/svm/structural_svm_problem_threaded_abstract.h @@ -28,7 +28,11 @@ namespace dlib So this object lets you take advantage of a multi-core system. You should set the num_threads parameter equal to the number of available cores. Note that the separation_oracle() function which you provide must be thread safe - if you are to use this version of the structural_svm_problem. + if you are to use this version of the structural_svm_problem. In + particular, it must be safe to call separation_oracle() concurrently from + different threads. However, it is guaranteed that different threads will + never make concurrent calls to separation_oracle() using the same idx value + (i.e. the first argument). !*/ typedef matrix_type_ matrix_type;