Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
99ed3572
Commit
99ed3572
authored
Jan 07, 2006
by
Pekka Pessi
Browse files
Fixed test code for pthread_rwlock_trywrlock().
darcs-hash:20060107123100-65a35-c6fb9ed9de847034dfa1b53cb0047958a8db225f.gz
parent
8d1a9b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
m4/sac-su2.m4
View file @
99ed3572
...
...
@@ -256,12 +256,12 @@ pthread_rwlock_t rw;
int main()
{
pthread_rwlock_init(&rw);
pthread_rwlock_init(&rw
, NULL
);
pthread_rwlock_rdlock(&rw);
pthread_rwlock_rdlock(&rw);
pthread_rwlock_unlock(&rw);
/* pthread_rwlock_trywrlock() should fail
with -1
*/
return pthread_rwlock_trywrlock(&rw)
=
=
-1
? 0 : 1;
/* pthread_rwlock_trywrlock() should fail
(not return 0)
*/
return pthread_rwlock_trywrlock(&rw)
!
=
0
? 0
: 1;
}
],[AC_DEFINE_HAVE_PTHREAD_RWLOCK],[
AC_MSG_WARN([Recursive pthread_rwlock_rdlock() does not work!!! ])
...
...
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