OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e3ed1af
)
Change pthread mutex's to be explicitly NORMAL instead of relying on the default...
author
eddyg
<eddyg@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 6 Oct 2008 21:36:01 +0000
(21:36 +0000)
committer
eddyg
<eddyg@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 6 Oct 2008 21:36:01 +0000
(21:36 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1817
b64f7644
-9d1e-0410-96f1-
a4d463321fa5
libhb/ports.c
patch
|
blob
|
history
diff --git
a/libhb/ports.c
b/libhb/ports.c
index
cecfc56
..
9d5fd08
100644
(file)
--- a/
libhb/ports.c
+++ b/
libhb/ports.c
@@
-409,7
+409,12
@@
hb_lock_t * hb_lock_init()
#if defined( SYS_BEOS )
l->sem = create_sem( 1, "sem" );
#elif USE_PTHREAD
- pthread_mutex_init( &l->mutex, NULL );
+ pthread_mutexattr_t mta;
+
+ pthread_mutexattr_init(&mta);
+ pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_NORMAL);
+
+ pthread_mutex_init( &l->mutex, &mta );
//#elif defined( SYS_CYGWIN )
// l->mutex = CreateMutex( 0, FALSE, 0 );
#endif