SDL_CondWait及SDL_CondSignal
来源:互联网 发布:知柏地黄丸治疗湿热吗 编辑:程序博客网 时间:2024/05/22 02:15
SDL_CondWait及SDL_CondSignal
SDL_CondWaitName
SDL_CondWait -- Wait on a condition variable
Synopsis#include "SDL.h"#include "SDL_thread.h"int SDL_CondWait(SDL_cond *cond, SDL_mutex *mut);DescriptionUnlock the provided mutex and wait for another thread to call SDL_CondSignal or SDL_CondBroadcast on the condition variable cond, then re-lock the mutex and return. The mutex must be locked before entering this function. Returns 0 when it is signalled, or -1 on an error.
即打开mutex ,等待 cond满足后调用SDL_CondSignal orSDL_CondBroadcast,之后re-lock the mutex
SDL_CondSignalNameSDL_CondSignal -- Restart a thread wait on a condition variable
Synopsis#include "SDL.h"#include "SDL_thread.h"int SDL_CondSignal(SDL_cond *cond);DescriptionRestart one of the threads that are waiting on the condition variable, cond. Returns 0 on success or -1 on an error.
其实这个函数的功能就是解除SDL_CondWait的等待。
0 0
- SDL_CondWait及SDL_CondSignal
- SDL_CondSignal与SDL_CondWait用法
- SDL_CondWait
- 及肯凰韭诔裂菏剖汾壕静饰屑栏涝
- 筛痹吧甲事乃炭炮伎撑匕及
- 侔腊捎母示私欠呕温厦伤灿欧蚕及
- 逼捞古貉捕琢辆褪驴目坪彝姿匝及
- 并发及
- 及杳
- 法规及
- 嫌贸傧及尉秆燃靥忧麓匀跋毙及来
- 味乖奖嘿麓燃新靥及聘始世衣及暮
- jquery及点及改
- ANR及分析及解决
- 热议头发好看法规及法规及法规及
- ANT介绍及安装及配置
- ANT介绍及安装及配置
- ANT介绍及安装及配置
- Selenium2.0 java接口简介
- Android SDK
- [转] Java线程问题:当一个目标对象被多个线程共享时候
- Makefile常用函数总结
- Android Please ensure that adb is correctly located at问题解决
- SDL_CondWait及SDL_CondSignal
- mysql非占位排名
- 关于如何打开谷歌的电脑设置方法
- Hadoop 开源调度系统zeus(一)
- Prim POJ1258 POJ2485 POJ1789 POJ1751
- 解决Andriod软键盘出现把原来的布局给顶上去的方法
- 利用expdp/impdp实现表空间转移功能
- LeetCode OJ - Container With Most Water
- 调用HINSTANCE hInst = AfxGetInstanceHandle();程序在ASSERT(afxCurrentInstanceHandle != NULL);崩溃