Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
d701d6a4
Commit
d701d6a4
authored
Aug 25, 2016
by
Hugo Beauzée-Luyssen
Browse files
compat: Thread: Avoid reconstructing a thread_id
parent
abf97765
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/compat/Thread.h
View file @
d701d6a4
...
...
@@ -135,7 +135,7 @@ public:
entryPoint
,
inst
});
#ifdef _WIN32
if
(
(
m_id
=
CreateThread
(
nullptr
,
0
,
&
threadRoutine
<
T
>
,
i
.
get
(),
0
,
nullptr
)
)
==
nullptr
)
if
(
(
m_id
.
m_id
=
CreateThread
(
nullptr
,
0
,
&
threadRoutine
<
T
>
,
i
.
get
(),
0
,
nullptr
)
)
==
nullptr
)
#else
if
(
pthread_create
(
&
m_id
.
m_id
,
nullptr
,
&
threadRoutine
<
T
>
,
i
.
get
()
)
!=
0
)
#endif
...
...
Write
Preview
Supports
Markdown
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