Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
856f70dd
Commit
856f70dd
authored
Jul 06, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: add pthreads-win32
parent
91e77b47
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
0 deletions
+67
-0
contrib/src/pthreads/SHA512SUMS
contrib/src/pthreads/SHA512SUMS
+1
-0
contrib/src/pthreads/pthreads-detach.patch
contrib/src/pthreads/pthreads-detach.patch
+12
-0
contrib/src/pthreads/pthreads-win64.patch
contrib/src/pthreads/pthreads-win64.patch
+23
-0
contrib/src/pthreads/rules.mak
contrib/src/pthreads/rules.mak
+31
-0
No files found.
contrib/src/pthreads/SHA512SUMS
0 → 100644
View file @
856f70dd
d86040b18641b52f2de81468e06e2885d0f0ed47cc5c9c90ca33614ed53ddd60167723b46eb477d905ad69f93b6b9002762589ba6c351f78a8041109cdbf287e pthreads-w32-2-8-0-release.tar.gz
contrib/src/pthreads/pthreads-detach.patch
0 → 100644
View file @
856f70dd
--- pthreads.orig/ptw32_processTerminate.c Mon Jan 26 18:00:34 2009
+++ pthreads/ptw32_processTerminate.c Mon Jan 26 18:00:42 2009
@@ -96,6 +96,9 @@
tp = tpNext;
}
+ ptw32_threadReuseTop = PTW32_THREAD_REUSE_EMPTY;
+ ptw32_threadReuseBottom = PTW32_THREAD_REUSE_EMPTY;
+
LeaveCriticalSection (&ptw32_thread_reuse_lock);
/*
contrib/src/pthreads/pthreads-win64.patch
0 → 100644
View file @
856f70dd
--- pthreads/pthread.h 2006-01-24 14:59:57.000000000 +0100
+++ pthreads.new/pthread.h 2010-04-14 15:49:39.000000000 +0200
@@ -302,7 +302,7 @@
#endif
#endif
-#ifndef HAVE_STRUCT_TIMESPEC
+#if !defined( HAVE_STRUCT_TIMESPEC ) && !defined( _TIMESPEC_DEFINED )
#define HAVE_STRUCT_TIMESPEC 1
struct timespec {
long tv_sec;
diff -urN pthreads/GNUmakefile pthreads.new/GNUmakefile
--- pthreads/GNUmakefile 2010-10-08 22:30:43.029264998 +0200
+++ pthreads.new/GNUmakefile 2010-10-08 22:30:55.989265032 +0200
@@ -63,7 +63,7 @@
XOPT =
RCFLAGS = --include-dir=.
-LFLAGS = -lwsock32
+LFLAGS = -lws2_32
# ----------------------------------------------------------------------
# The library can be built with some alternative behaviour to
contrib/src/pthreads/rules.mak
View file @
856f70dd
...
@@ -3,3 +3,34 @@
...
@@ -3,3 +3,34 @@
ifndef
HAVE_WIN32
ifndef
HAVE_WIN32
PKGS_FOUND
+=
pthreads
PKGS_FOUND
+=
pthreads
endif
endif
PTHREADS_W32_VERSION
:=
2-8-0
PTHREADS_W32_URL
:=
ftp://sources.redhat.com/pub/pthreads-win32/pthreads-w32-
$(PTHREADS_W32_VERSION)
-release
.tar.gz
$(TARBALLS)/pthreads-w32-$(PTHREADS_W32_VERSION)-release.tar.gz
:
$(
call
download,
$(PTHREADS_W32_URL)
)
.sum-pthreads
:
pthreads-w32-$(PTHREADS_W32_VERSION)-release.tar.gz
ifdef
HAVE_WIN32
pthreads
:
pthreads-w32-$(PTHREADS_W32_VERSION)-release.tar.gz .sum-pthreads
$(UNPACK)
$(APPLY)
$(SRC)
/pthreads/pthreads-detach.patch
$(APPLY)
$(SRC)
/pthreads/pthreads-win64.patch
sed
-e
's/^CROSS.*=/CROSS ?=/'
-i
.orig
$(UNPACK_DIR)
/GNUmakefile
$(MOVE)
ifdef
HAVE_CROSS_COMPILE
PTHREADS_W32_CONF
:=
CROSS
=
"
$(HOST)
-"
endif
.pthreads
:
pthreads
cd
$<
&&
$(HOSTVARS)
$(PTHREADS_W32_CONF)
$(MAKE)
MAKEFLAGS
=
-j1
GC GC-static
mkdir
-p
--
"
$(PREFIX)
/include"
cd
$<
&&
cp
-v
pthread.h sched.h semaphore.h
"
$(PREFIX)
/include/"
sed
-e
's/#if HAVE_CONFIG_H/#if 0 \&\& HAVE_CONFIG_H/'
-i
\
"
$(PREFIX)
/include/pthread.h"
mkdir
-p
--
"
$(PREFIX)
/lib"
cp
-v
$<
/
*
.a
$<
/
*
.dll
"
$(PREFIX)
/lib/"
touch
$@
endif
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