SDL_SemPost.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_SemPost" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_SemPost- Unlock a semaphore&.
- .SH "SYNOPSIS"
- .PP
- fB#include "SDL&.h"
- #include "SDL_thread&.h"
- .sp
- fBint fBSDL_SemPostfPfR(fBSDL_sem *semfR);
- .SH "DESCRIPTION"
- .PP
- fBSDL_SemPostfP unlocks the semaphore pointed to by fBsemfR and atomically increments the semaphores value&. Threads that were blocking on the semaphore may be scheduled after this call succeeds&.
- .PP
- fBSDL_SemPostfP should be called after a semaphore is locked by a successful call to fISDL_SemWaitfR, fISDL_SemTryWaitfR or fISDL_SemWaitTimeoutfR&.
- .SH "RETURN VALUE"
- .PP
- Returns fB0fR if successful or fB-1fR if there was an error (leaving the semaphore unchanged)&.
- .SH "EXAMPLES"
- .PP
- .PP
- .nf
- f(CWSDL_SemPost(my_sem);fR
- .fi
- .PP
- .SH "SEE ALSO"
- .PP
- fIfBSDL_CreateSemaphorefPfR, fIfBSDL_DestroySemaphorefPfR, fIfBSDL_SemWaitfPfR, fIfBSDL_SemTryWaitfPfR, fIfBSDL_SemWaitTimeoutfPfR, fIfBSDL_SemValuefPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00