Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
31a31272
Commit
31a31272
authored
9 years ago
by
James Zern
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "vp8: fix build with mingw+pthreads"
parents
0091fef7
ba7ebbb3
No related branches found
Branches containing commit
No related tags found
2 merge requests
!6
Rav1e 11 yushin 1
,
!3
Rav1e 10 yushin
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8/common/threading.h
+4
-3
4 additions, 3 deletions
vp8/common/threading.h
with
4 additions
and
3 deletions
vp8/common/threading.h
+
4
−
3
View file @
31a31272
...
...
@@ -12,6 +12,7 @@
#ifndef VP8_COMMON_THREADING_H_
#define VP8_COMMON_THREADING_H_
#include
"./vpx_config.h"
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -20,7 +21,7 @@ extern "C" {
#if CONFIG_OS_SUPPORT && CONFIG_MULTITHREAD
/* Thread management macros */
#ifdef
_WIN32
#if
def
ined(
_WIN32
) && !HAVE_PTHREAD_H
/* Win32 */
#include
<process.h>
#include
<windows.h>
...
...
@@ -77,8 +78,8 @@ extern "C" {
#define ts_key_create(ts_key, destructor) pthread_key_create (&(ts_key), destructor);
#endif
/* Sync
r
hronization macros: Win32 and Pthreads */
#ifdef
_WIN32
/* Synchronization macros: Win32 and Pthreads */
#if
def
ined(
_WIN32
) && !HAVE_PTHREAD_H
#define sem_t HANDLE
#define pause(voidpara) __asm PAUSE
#define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
...
...
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