![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后台开发
力都
这个作者很懒,什么都没留下…
展开
-
使用原子操作的坑
gcc原子操作 type __sync_fetch_and_add (type *ptr, type value, ...) type __sync_fetch_and_sub (type *ptr, type value, ...) type __sync_fetch_and_or (type *ptr, type value, ...) type __sync_fetch_and_and (...原创 2019-03-31 10:51:39 · 433 阅读 · 0 评论 -
【转】epoll源码解析
当系统启动时,epoll进行初始化: static int __init eventpoll_init(void) { mutex_init(&pmutex); ep_poll_safewake_init(&psw); epi_cache = kmem_cache_create(“eventpoll_epi”, ...转载 2019-04-07 10:36:10 · 129 阅读 · 0 评论