linux下是这样定义的:在linux的实现中pthread_t被定义为 "unsigned long int",參考这里Windows下这样定义: /* * Generic handle type - intended to extend uniqueness beyond ...
分类:
其他好文 时间:
2014-11-02 10:41:57
阅读次数:
217
void CMFC_CORE_1Dlg::GetModule(){ HMODULE hmodule = NULL; GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,(PCTSTR)GetModule,&hmodule); TRACE(...
分类:
其他好文 时间:
2014-11-01 21:39:47
阅读次数:
269
#include
#include
DWORD WINAPI fun1proc(LPVOID lparameter);
DWORD WINAPI fun2proc(LPVOID lparameter);
int index=0;
int tickets=100;
HANDLE hmutex; //定义互斥对象句柄
int main()
{
HANDLE ht1; //...
分类:
其他好文 时间:
2014-10-31 22:13:40
阅读次数:
265
set(new offstate()); }}class offstate implements state{ public function show(){ echo '是关灯状态'; } public function handle($light){ $light->set(new ons...
分类:
Web程序 时间:
2014-10-31 13:23:09
阅读次数:
252
C++API CreateMutex找出当前系统是否已经存在指定进程的实例。假设没有则创建一个相互排斥体。CreateMutex()函数可用来创建一个有名或无名的相互排斥量对象。HANDLE CreateMutex( LPSECURITY_ATTRIBUTES lpMutexAttributes.....
分类:
其他好文 时间:
2014-10-30 18:39:41
阅读次数:
157
Using the Android Device's Back Button To make your application handle when users press the Back button on their Android device, add an event handler....
分类:
移动开发 时间:
2014-10-29 12:24:52
阅读次数:
530
1 function deleteDir($path){//没有检测目录是否存在 2 $handle=opendir($path); 3 while(false!==($file=readdir($handle))){ 4 if($file!...
分类:
其他好文 时间:
2014-10-29 10:27:18
阅读次数:
153
DM8168新板从贴片到系统启动折腾了二十多天终于完成,高校里做个东西好累,导师只给机焊10个BGA,别的都是手工。
前段时间启动操作系统时,到了Starting Matrix GUI application。。。
出现了 pgd = c0004000 的毛病,查了很久没找到合适的答案,最后回到log看到一句提示:
Unable to handle kerne...
分类:
其他好文 时间:
2014-10-29 00:28:05
阅读次数:
263
Implement the following types and define ServeHTTP methods on them. Register them to handle specific paths in your web server.type String stringtype S...
分类:
Web程序 时间:
2014-10-28 23:51:10
阅读次数:
222
作者:zhanhailiang 日期:2014-10-28
PHP Console:https://github.com/barbushin/php-console#php-console-server-library
功能介绍
PHP Console工具和FirePHP功能相似,提供以下功能:
Handle PHP errors, dump variables,...
分类:
Web程序 时间:
2014-10-28 21:49:50
阅读次数:
322