Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
2434cd3f
Commit
2434cd3f
authored
Apr 06, 2002
by
rswindell
Browse files
Eliminated Win32 version of sem_getvalue (didn't work correctly).
parent
a172a8fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
src/xpdev/threadwrap.c
src/xpdev/threadwrap.c
+0
-18
No files found.
src/xpdev/threadwrap.c
View file @
2434cd3f
...
...
@@ -75,21 +75,3 @@ ulong _beginthread(void( *start_address )( void * )
#endif
#endif
/* __unix__ */
/****************************************************************************/
/* Win32 implementation of POSIX sem_getvalue() function */
/****************************************************************************/
#if defined(_WIN32)
int
DLLCALL
sem_getvalue
(
sem_t
*
psem
,
int
*
val
)
{
if
(
psem
==
NULL
||
val
==
NULL
)
return
(
-
1
);
if
(
WaitForSingleObject
(
*
(
psem
),
0
)
==
WAIT_OBJECT_0
)
*
val
=
1
;
else
*
val
=
0
;
return
(
0
);
}
#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