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
gaoqiong
pybind11
Commits
cd2d3ad5
"vscode:/vscode.git/clone" did not exist on "2ae36a97fd9439de883bb5600db26634ee34d494"
Commit
cd2d3ad5
authored
Jun 24, 2017
by
Dean Moldovan
Browse files
Fix embedded threads test on MSVC2015 / Python 2.7
parent
9d698f7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_embed/test_interpreter.cpp
tests/test_embed/test_interpreter.cpp
+1
-1
No files found.
tests/test_embed/test_interpreter.cpp
View file @
cd2d3ad5
...
...
@@ -205,7 +205,7 @@ TEST_CASE("Threads") {
for
(
auto
i
=
0
;
i
<
num_threads
;
++
i
)
{
threads
.
emplace_back
([
&
]()
{
py
::
gil_scoped_acquire
gil
{};
py
::
exec
(
"count += 1"
,
py
::
g
lo
b
als
(),
locals
)
;
locals
[
"count"
]
=
lo
c
als
[
"count"
].
cast
<
int
>
()
+
1
;
});
}
...
...
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