SDL_DestroySemaphore.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_DestroySemaphore" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_DestroySemaphore- Destroys a semaphore that was created by fISDL_CreateSemaphorefR&.
- .SH "SYNOPSIS"
- .PP
- fB#include "SDL&.h"
- #include "SDL_thread&.h"
- .sp
- fBvoid fBSDL_DestroySemaphorefPfR(fBSDL_sem *semfR);
- .SH "DESCRIPTION"
- .PP
- fBSDL_DestroySemaphorefP destroys the semaphore pointed to by fBsemfR that was created by fIfBSDL_CreateSemaphorefPfR&. It is not safe to destroy a semaphore if there are threads currently blocked waiting on it&.
- .SH "EXAMPLES"
- .PP
- .PP
- .nf
- f(CWif (my_sem != NULL) {
- SDL_DestroySemaphore(my_sem);
- my_sem = NULL;
- }fR
- .fi
- .PP
- .SH "SEE ALSO"
- .PP
- fIfBSDL_CreateSemaphorefPfR, fIfBSDL_SemWaitfPfR, fIfBSDL_SemTryWaitfPfR, fIfBSDL_SemWaitTimeoutfPfR, fIfBSDL_SemPostfPfR, fIfBSDL_SemValuefPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00