Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ccc538be
Commit
ccc538be
authored
Nov 13, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Nov 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unix98 pthread_rwlock* stubs for glibc2.2 compatibility.
parent
45d31de3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
0 deletions
+80
-0
pthread.c
scheduler/pthread.c
+80
-0
No files found.
scheduler/pthread.c
View file @
ccc538be
...
...
@@ -8,6 +8,7 @@
*/
#include "config.h"
#define _GNU_SOURCE
/* we may need to override some GNU extensions */
#include <assert.h>
#include <errno.h>
...
...
@@ -394,6 +395,85 @@ int pthread_condattr_destroy(pthread_condattr_t *attr)
return
0
;
}
#if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2)
/***** READ-WRITE LOCKS *****/
/* not implemented right now */
int
__pthread_rwlock_init
(
pthread_rwlock_t
*
rwlock
,
const
pthread_rwlockattr_t
*
rwlock_attr
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_init
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_init
,
pthread_rwlock_init
);
int
__pthread_rwlock_destroy
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_destroy
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_destroy
,
pthread_rwlock_destroy
);
int
__pthread_rwlock_rdlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_rdlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_rdlock
,
pthread_rwlock_rdlock
);
int
__pthread_rwlock_tryrdlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_tryrdlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_tryrdlock
,
pthread_rwlock_tryrdlock
);
int
__pthread_rwlock_wrlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_wrlock_rdlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_wrlock
,
pthread_rwlock_wrlock
);
int
__pthread_rwlock_trywrlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_trywrlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_trywrlock
,
pthread_rwlock_trywrlock
);
int
__pthread_rwlock_unlock
(
pthread_rwlock_t
*
rwlock
)
{
P_OUTPUT
(
"FIXME:pthread_rwlock_unlock
\n
"
);
return
0
;
}
strong_alias
(
__pthread_rwlock_unlock
,
pthread_rwlock_unlock
);
/**** READ-WRITE LOCK ATTRIBUTES *****/
/* not implemented right now */
int
pthread_rwlockattr_init
(
pthread_rwlockattr_t
*
attr
)
{
return
0
;
}
int
__pthread_rwlockattr_destroy
(
pthread_rwlockattr_t
*
attr
)
{
return
0
;
}
strong_alias
(
__pthread_rwlockattr_destroy
,
pthread_rwlockattr_destroy
);
int
pthread_rwlockattr_getkind_np
(
const
pthread_rwlockattr_t
*
attr
,
int
*
pref
)
{
*
pref
=
0
;
return
0
;
}
int
pthread_rwlockattr_setkind_np
(
pthread_rwlockattr_t
*
attr
,
int
pref
)
{
return
0
;
}
#endif
/* glibc 2.2 */
/***** MISC *****/
pthread_t
pthread_self
(
void
)
...
...
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