Wednesday, February 19, 2014

Creating thread with their id's

for(i=0;i < numthereads;i++)
workers.push_back(thread(&ThreadPool::thread_loop,this,i));

Thursday, January 23, 2014

Friday, January 17, 2014

Two small console debug tools

#define step() toc=tic;tic=GetTickCount();printf("Elapsed: %d\n",tic-toc);
#define pause() system("pause");

Be Human

This is my prompt to the humans out there: Publication for the sake of publication, architecture for the sake of architecture, and agents fo...