C++
yusisc
这个作者很懒,什么都没留下…
展开
-
simple cpp pool to limit the amount of thread running currently
simple cpp pool to limit the amount of thread running currently to make the computer more responsive. short story wrapping the target function with lambda function. condition variable to block the wrapping function, limiting running thread amount. long s原创 2020-06-26 12:36:41 · 188 阅读 · 0 评论 -
cpp work with utf-8
I’m mainly working with cpp, recently. Sometimes, I have some Chinese characters in the input/output stream, the the encoding issue became annoy. the method to make your utf-8 coded program work in GBK scenario. add the following line to your code. #includ原创 2020-06-12 20:33:36 · 285 阅读 · 0 评论 -
how operating system locates the dll for an applicaton
when it’s implicit linking an dll (dynamic-link library) , the operating system will use the following algorithm for locating a DLL. The directory where the executable module for the current process...原创 2019-01-10 02:50:44 · 185 阅读 · 0 评论