Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
b41dc1fc
Commit
b41dc1fc
authored
Feb 28, 2014
by
Robert McGibbon
Browse files
reset threadpool
parent
6a95f707
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
openmmapi/src/ThreadPool.cpp
openmmapi/src/ThreadPool.cpp
+1
-10
No files found.
openmmapi/src/ThreadPool.cpp
View file @
b41dc1fc
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */
* -------------------------------------------------------------------------- */
#include <stdlib.h>
#include "openmm/internal/ThreadPool.h"
#include "openmm/internal/ThreadPool.h"
#include "openmm/internal/hardware.h"
#include "openmm/internal/hardware.h"
...
@@ -62,15 +61,7 @@ static void* threadBody(void* args) {
...
@@ -62,15 +61,7 @@ static void* threadBody(void* args) {
}
}
ThreadPool
::
ThreadPool
()
{
ThreadPool
::
ThreadPool
()
{
char
*
openmmNumThreads
=
getenv
(
"OPENMM_NUM_THREADS"
);
char
*
end
=
openmmNumThreads
;
if
(
openmmNumThreads
!=
NULL
)
{
numThreads
=
strtol
(
openmmNumThreads
,
&
end
,
0
);
}
if
(
openmmNumThreads
==
NULL
||
openmmNumThreads
==
end
)
{
numThreads
=
getNumProcessors
();
numThreads
=
getNumProcessors
();
}
pthread_cond_init
(
&
startCondition
,
NULL
);
pthread_cond_init
(
&
startCondition
,
NULL
);
pthread_cond_init
(
&
endCondition
,
NULL
);
pthread_cond_init
(
&
endCondition
,
NULL
);
pthread_mutex_init
(
&
lock
,
NULL
);
pthread_mutex_init
(
&
lock
,
NULL
);
...
...
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