Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cineform-sdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
cineform-sdk
Commits
5e343a17
Commit
5e343a17
authored
7 years ago
by
Emeric Grange
Browse files
Options
Downloads
Patches
Plain Diff
fix implicit declaration of function 'GetCurrentThread' and related warnings
parent
3d79ee4c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Codec/entropy_threading.c
+2
-2
2 additions, 2 deletions
Codec/entropy_threading.c
Codec/thread.c
+1
-7
1 addition, 7 deletions
Codec/thread.c
with
3 additions
and
9 deletions
Codec/entropy_threading.c
+
2
−
2
View file @
5e343a17
...
...
@@ -327,7 +327,7 @@ THREAD_PROC(EntropyWorkerThreadProc, lpParam)
HANDLE
hCurrentThread
=
GetCurrentThread
();
SetThreadAffinityMask
(
hCurrentThread
,
decoder
->
thread_cntrl
.
affinity
);
#else
pthread_t
thread
=
GetCurrentThread
();
pthread_t
thread
=
pthread_self
();
uint32_t
thread_affinity
=
decoder
->
thread_cntrl
.
affinity
;
SetThreadAffinityMask
(
thread
,
&
thread_affinity
);
#endif
...
...
@@ -403,7 +403,7 @@ THREAD_PROC(ParallelThreadProc, lpParam)
HANDLE
hCurrentThread
=
GetCurrentThread
();
SetThreadAffinityMask
(
hCurrentThread
,
decoder
->
thread_cntrl
.
affinity
);
#else
pthread_t
thread
=
GetCurrentThread
();
pthread_t
thread
=
pthread_self
();
uint32_t
thread_affinity
=
decoder
->
thread_cntrl
.
affinity
;
SetThreadAffinityMask
(
thread
,
&
thread_affinity
);
#endif
...
...
This diff is collapsed.
Click to expand it.
Codec/thread.c
+
1
−
7
View file @
5e343a17
...
...
@@ -23,13 +23,7 @@
#include
"thread.h"
#ifdef _WINDOWS
#else
pthread_t
GetCurrentThread
(
void
)
{
return
pthread_self
();
}
#ifndef _WINDOWS
//TODO: How to set the thread affinity on Macintosh and Linux?
void
SetThreadAffinityMask
(
pthread_t
thread
,
uint32_t
*
thread_affinity_mask
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment