在有全屏侧滑的情况下,页面上有个slider需要左右滑动的时候,经常在滑动slider的时候页面也跟着滑动 解决办法一:关闭当前页面的全屏侧滑,开启系统侧滑 self.fd_interactivePopDisabled = YES; //关闭全屏侧滑 self.navigationControlle ...
分类:
其他好文 时间:
2016-06-14 11:45:13
阅读次数:
223
NAME select, pselect, FD_ZERO, FD_SET, FD_ISSET - Synchronous I/O Multiplexing. SYNOPSIS /*according to earlier standards*/ #include <sys/types.h> #in ...
分类:
其他好文 时间:
2016-06-12 18:20:38
阅读次数:
157
从别人的博客中转载过来了这一篇文章,经过重新编辑排版之后展现于此,做一个知识点保存与学习。 select函数用于在非阻塞中,当一个套接字或一组套接字有信号时通知你,系统提供select函数来实现多路复用输入/输出模型,原型: int select(int maxfd,fd_set *rdset,fd ...
分类:
系统相关 时间:
2016-06-11 18:50:30
阅读次数:
200
epoll - I/O event notification facility在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在 ...
分类:
其他好文 时间:
2016-06-11 01:59:12
阅读次数:
262
select函数: 系统提供select函数来实现多路复用输入/输出模型。原型: #include <sys/time.h> #include <unistd.h> int select(int nfds, fd_set *readset, fd_set *writeset,fd_set* exce ...
分类:
其他好文 时间:
2016-06-08 15:59:00
阅读次数:
1773
#include <sys/select.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> int select(int nfds, fd_set * readfds, fd_set * writefds, fd_ ...
分类:
其他好文 时间:
2016-06-06 10:28:10
阅读次数:
219
一、pollpoll的实现和select非常相似,只是描述fd集合的方式不同,poll使用pollfd结构而不是select的fd_set结构,其他的都差不多。二、poll相关函数#include<poll.h>intpoll(structpollfd*fds,nfds_tnfds,inttimeout);//fds:pollfd结构体events:要监视的事件revents:已经..
分类:
其他好文 时间:
2016-06-03 23:09:52
阅读次数:
343
函数原型:ssize_t write(int fd,const void *buf,size_t count); 参数说明:fd:文件描述符,buf:写入数据的缓冲区,count:写入数据的最大长度。 返回值:成功返回实际写入的字节数,当有错误发生时则返回-1,错误代码存入errno中。 ...
分类:
其他好文 时间:
2016-06-03 01:04:47
阅读次数:
154
头文件:#include<unistd.h> 函数原型:ssize_t read(int fd,void *buf,size_t count); 参数说明:fd:文件描述符 buf:存放读取数据的缓冲区。 count:读取的最大长度 返回值:成功则返回读取的字节数,失败则返回-1. ...
分类:
其他好文 时间:
2016-06-03 00:58:36
阅读次数:
133
误删数据库文件后,请不要重启mysqld!rm/data/mysql/test/test2.ibd
lsof|greptest2.ibd
mysqld9338493483mysql21uWREG8,39830433578386/data/mysql/test/test2.ibd(deleted)PID为93384文件标识符为21cat/proc/93384/fd/21>/data/mysql/test/test2.ibd重启数据库提示:Star..
分类:
数据库 时间:
2016-06-02 20:10:10
阅读次数:
169