This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
em @echo off | |
rem 先编译bjam | |
start bootstrap.bat | |
rem 等待一分钟待bjam编译完成(如果电脑性能过差,可以设置等待时间更长一些) | |
SET SLEEP=ping 127.0.0.1 -n | |
%SLEEP% 60 > nul | |
rem 利用bjam编译boost库 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CQueue | |
// | |
// Implements a simple Queue ADT. The queue contains a finite number of | |
// objects, access to which is controlled by a semaphore. The semaphore | |
// is created with an initial count (N). Each time an object is added | |
// a call to WaitForSingleObject is made on the semaphore's handle. When | |
// this function returns a slot has been reserved in the queue for the new | |
// object. If no slots are available the function blocks until one becomes | |
// available. Each time an object is removed from the queue ReleaseSemaphore | |
// is called on the semaphore's handle, thus freeing a slot in the queue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//===================================================== | |
//simple log tool for debug | |
//===================================================== | |
#ifndef _LOGTOOL_H_ | |
#define _LOGTOOL_H_ | |
#include <stdio.h> | |
#include <windows.h> | |