近日需要将线程池封装成C++类,类名为Threadpool。在类的成员函数exec_task中调用pthread_create去启动线程执行例程thread_rounter。编译之后报错如下:spfs_threadpool.cpp:Inmemberfunction‘intThreadpool::ex...
分类:
编程语言 时间:
2014-10-17 15:14:44
阅读次数:
237
启动nginx的时候,提示80端口被占用怎么办?
可以这么做:
sudo fuser -k 80/tcp
service nginx start...
分类:
其他好文 时间:
2014-10-16 19:08:02
阅读次数:
255
SELECT TableName = OBJECT_NAME(c.object_id), ColumnsName = c.name, Description = ex.value, ColumnType=t.name, Length=c.max_length FROM sys.columns c L...
分类:
数据库 时间:
2014-10-16 16:58:22
阅读次数:
195
下面介绍下如何在VS2013中实现Extjs的智能提示。新建一个项目,如图所示:在自己的js脚本目录中,把ext-all-dev.js文件复制过来。然后创建自己的js脚本文件。这里是test.js。然后在test.js文件头部加入:/// 如果ext-all-dev.js不在本目录,那么要补全ex....
分类:
Web程序 时间:
2014-10-16 15:43:52
阅读次数:
230
redis是一个 高性能的key-value数据库.我们可以对其中的key设置一个过期时间,相关命令如下: 1.在创建一个key value 的时候同时设置过期时间 比如: set key1 value1 EX 60 表示: 我们想要将这个 key value 放到red...
分类:
其他好文 时间:
2014-10-16 15:15:13
阅读次数:
435
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:
编程语言 时间:
2014-10-16 06:49:52
阅读次数:
259
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:
编程语言 时间:
2014-10-16 06:16:22
阅读次数:
207
Powerful Bash-style command line editing for cmd.ex 一个类似linux的bash的cmd插件。 我们可以在windows 下的cmd.exe? 支持c-a c-e c-b c-f a-b a-f.... 点击clink.bat以后,在运行 clink autorun -i 下次运行...
分类:
其他好文 时间:
2014-10-14 23:18:49
阅读次数:
299
selectts.tbcxsxintoparam_timeLimitfromwinf_sv_ex_hybs_tbcxsqtswherets.sblsh=:new.sblshandts.xh=:new.xh;如果未找到任何记录,后面加一句Exceptionwhenno_data_foundthenparam_timeLimit:=0;即可;
分类:
数据库 时间:
2014-10-14 21:36:49
阅读次数:
188
相信大多数人在写PHP代码的时候,都遇到过类似"Warning: Cannot send session cookie – headers already sent…“或者”Cannot add/modify header information – headers already sent…"这样...
分类:
其他好文 时间:
2014-10-14 18:40:09
阅读次数:
126