LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1057|回复: 2

在windows的多线程编程里有event,不知道linux里有没有对应的event处理?

[复制链接]
发表于 2004-9-2 09:17:14 | 显示全部楼层 |阅读模式
在Linux多线程里好像就只看到mutex和semaphore这两种线程同步机制,有没有类似windows下面处理event的同步机制?
或者是要自己通过mutex和pthread的条件处理方式写代码来实现event机制?
pthread_cond_init
pthread_cond_wait
pthread_cond_broadcast
pthread_cond_signal
pthread_cond_destroy
发表于 2004-9-2 12:21:17 | 显示全部楼层
没有吧
 楼主| 发表于 2004-9-2 16:02:50 | 显示全部楼层
那看来是要自己写代码实现同样的机制了哦~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表