
pc
newmandirl
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
windows 少数线程并发 监听多个目录
windows上用少数线程并发监听多个目录变化原创 2017-12-20 10:16:54 · 555 阅读 · 0 评论 -
multithread and static instances inside dll/dylib
In macosx, it seems that subthreads won't terminate until after any function which is registered to the api atexit is done. see this: https://blog.youkuaiyun.com/newmandirl/article/details/80079989When you'...原创 2018-04-25 18:10:37 · 197 阅读 · 0 评论 -
about OPENSSL_thread_stop
the official link:https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_thread_stop.html#NOTESopenssl git issue:https://github.com/openssl/openssl/issues/6081PERSONAL_EXPERIENCE:Before version of openssl...原创 2018-04-25 16:33:10 · 666 阅读 · 0 评论 -
macosx about atexit and subthreads
you can use the api atexit to register when the thread is going to exit, the api is from stdlib.h.1.here is personal thoughts after some test and debug:When main-thread executing atexit, other subthre...原创 2018-04-25 16:33:28 · 205 阅读 · 0 评论 -
qthreadstorage(encapsulation by yunthreadlocal)
strange things:using qt4.8.4 static lib, it will crash when:~yunthreadlocal() { m_qthread_storage.setLocalData(NULL);// crash here}if use qt4.8.4 dynamic lib, it won't.reason: to be continued...原创 2018-04-25 15:24:14 · 337 阅读 · 0 评论 -
what is -fno-elide-constructors and how to use in cmake
about -fno-elide-constructors:https://blog.youkuaiyun.com/XiyouLinux_Kangyijie/article/details/78939291https://www.cnblogs.com/xkfz007/archive/2012/07/21/2602110.htmlhow to use in cmake:SET(CMAKE_CXX_FLAGS ...原创 2018-04-19 11:58:40 · 850 阅读 · 0 评论 -
getQueuedCompletionStatus或ReadDirectoryChanged 会在某个时刻修改overlap?导致free heap block modified at after i
伪代码:class WatchInfo { OVERLAPPED overLapped; }ReadDirectoryChanged会传watchInfo的overlapped地址;getQueuedCompletionStatus传入一OVERLAPPED指针,函数返回后该指针可能会被赋值(目前还没用到这个);而ReadDirectoryChanged和getQueuedComp原创 2018-01-24 14:31:41 · 378 阅读 · 0 评论 -
gflags disable无效?看这里
打开你的注册表找到这个:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options可以直接删除你想取消的exe文件done原创 2018-01-24 10:42:49 · 520 阅读 · 0 评论 -
todo: using dll by 'Implicit Linking' or 'Explicit Linking'
In my c++ project under windows, I've seen a CRASH!Why will ~weak_ptr() crash in a dll?Here is my project:App.exe Parent.dll Child1.dllThere is a codes:Parent.dllvoid setSomeInfosToChild(...原创 2018-05-26 11:17:14 · 258 阅读 · 0 评论