码迷,mamicode.com
首页 >  
搜索关键字:handle concurrency    ( 4798个结果
文件重命名的几种写法
现在主要的是通过往ZwSetInformationFile发送HANDLE和改名请求再者就是往IoSetInformation发送FILEOBJECT和改名请求以及我自己模仿iosetinformation写成的创建IRP改名voidRenameFileROutineByHandle(){ UNIC...
分类:其他好文   时间:2014-06-03 11:40:58    阅读次数:386
CreateMutex实现只能打开一个客户端
#include "stdafx.h"#include #include using namespace std;int _tmain (int argc, LPTSTR argv[]){ HANDLE h=CreateMutex(NULL,TRUE,"AAAAAAA"); if(Get...
分类:其他好文   时间:2014-05-31 16:44:37    阅读次数:209
dlsym
在Android源码中发现,会如下使用:dlsym(RTLD_DEFAULT, name);也就是说 handle=RTLD_DEFAULT,在网上查了下,大致是说会在当前进程中按照 default library search order搜索name这个symbol。其中RTLD_DEFAULT=...
分类:其他好文   时间:2014-05-31 13:12:22    阅读次数:196
生产者消费者问题c语言实现
1 #include 2 #include 3 #include 4 //信号量与关键段 5 CRITICAL_SECTION g_cs; 6 HANDLE Empty,Full; 7 8 const int BUFFER_SIZE=10;//10个缓冲池 9 const int numo...
分类:编程语言   时间:2014-05-30 09:20:55    阅读次数:371
win8发布 wcf问题
WCF services don’t run on IIS 8 with the default configuration, because the webserver doesn’t know, how to handle incoming requests targeting .svc fil...
分类:Windows程序   时间:2014-05-30 06:12:19    阅读次数:314
提权操作函数
DWORD AdjustProcessToken(HANDLE hProcess, LPCTSTR lpPrivilegeName){ HANDLE hToken; TOKEN_PRIVILEGES tp; tp.PrivilegeCount =1; tp.Privileg...
分类:其他好文   时间:2014-05-29 16:18:44    阅读次数:263
Dispatch Semaphore
A dispatchsemaphore(信号量) is useful if you need a concurrency control for a small portion(部分) of the source code that has smaller granularity(颗粒度) than...
分类:其他好文   时间:2014-05-28 21:51:45    阅读次数:395
osg事件处理器osgGA::GUIEventHandler handle
boolhandle(constosgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa){osgViewer::Viewer* viewer =dynamic_cast(&aa);}bool ControlMan::handle(const o...
分类:其他好文   时间:2014-05-28 21:26:06    阅读次数:670
三、android中Handle类的用法
当我们在处理下载或是其他需要长时间执行的任务时,如果直接把处理函数放Activity的OnCreate或是OnStart中,会导致执行过程中整个Activity无响应,如果时间过长,程序还会挂掉。Handler就是把这些功能放到一个单独的线程里执行,与Activity互不影响。 当用户点击一个按钮时...
分类:移动开发   时间:2014-05-28 01:50:06    阅读次数:315
c++11 条件变量 生产者-消费者 并发线程
http://baptiste-wicht.com/posts/2012/04/c11-concurrency-tutorial-advanced-locking-and-condition-variables.htmlstruct BoundedBuffer { int* buffer; ...
分类:编程语言   时间:2014-05-27 16:04:22    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!