锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久亚洲精品日久生情,一本久久a久久精品综合夜夜,久久婷婷五月综合97色http://m.shnenglu.com/thisisbin/archive/2009/02/09/73320.html璁告搗鏂?/dc:creator>璁告搗鏂?/author>Mon, 09 Feb 2009 09:59:00 GMThttp://m.shnenglu.com/thisisbin/archive/2009/02/09/73320.htmlhttp://m.shnenglu.com/thisisbin/comments/73320.htmlhttp://m.shnenglu.com/thisisbin/archive/2009/02/09/73320.html#Feedback0http://m.shnenglu.com/thisisbin/comments/commentRss/73320.htmlhttp://m.shnenglu.com/thisisbin/services/trackbacks/73320.html
]]>- 瀹炵幇boost::thread涓璕AII椋庢牸鐨勫叡浜攣http://m.shnenglu.com/thisisbin/archive/2009/01/22/72446.html璁告搗鏂?/dc:creator>璁告搗鏂?/author>Thu, 22 Jan 2009 02:22:00 GMThttp://m.shnenglu.com/thisisbin/archive/2009/01/22/72446.htmlhttp://m.shnenglu.com/thisisbin/comments/72446.htmlhttp://m.shnenglu.com/thisisbin/archive/2009/01/22/72446.html#Feedback0http://m.shnenglu.com/thisisbin/comments/commentRss/72446.htmlhttp://m.shnenglu.com/thisisbin/services/trackbacks/72446.html瀹炵幇浠g爜錛?br>
璋冪敤鏂瑰紡錛?br>
http://m.shnenglu.com/thisisbin/archive/2009/01/21/72417.html 涓鏂?single-write/multi-read 灝卞彲浠ュ簲鐢ㄨ繖縐峈AII椋庢牸鐨勫叡浜攣瀹?/p>

]]>- 搴旂敤boost::thread鐨剆hared_mutex瀹炵幇singled_write/multi_read鐨勭畝鍗曚緥瀛?/title>http://m.shnenglu.com/thisisbin/archive/2009/01/21/72417.html璁告搗鏂?/dc:creator>璁告搗鏂?/author>Wed, 21 Jan 2009 05:58:00 GMThttp://m.shnenglu.com/thisisbin/archive/2009/01/21/72417.htmlhttp://m.shnenglu.com/thisisbin/comments/72417.htmlhttp://m.shnenglu.com/thisisbin/archive/2009/01/21/72417.html#Feedback0http://m.shnenglu.com/thisisbin/comments/commentRss/72417.htmlhttp://m.shnenglu.com/thisisbin/services/trackbacks/72417.html
1 #include <iostream>
2
3 #include <boost/thread/thread.hpp>
4 #include <boost/thread/shared_mutex.hpp>
5
6 using namespace std;
7 using namespace boost;
8
9 boost::shared_mutex shr_mutex;
10
11 /// 榪欎釜鏄緟鍔╃被錛岃兘澶熶繚璇乴og_info琚畬鏁寸殑杈撳嚭
12 class safe_log {
13 public:
14 static void log(const std::string& log_info) {
15 boost::mutex::scoped_lock lock(log_mutex);
16 cout << log_info << endl;
17 }
18
19 private:
20 static boost::mutex log_mutex;
21 };
22
23 boost::mutex safe_log::log_mutex;
24
25 void write_process() {
26 shr_mutex.lock();
27 safe_log::log("begin of write_process");
28 safe_log::log("end of write_process");
29 shr_mutex.unlock();
30 }
31
32 void read_process() {
33 shr_mutex.lock_shared();
34 safe_log::log("begin of read_process");
35 safe_log::log("end of read_process");
36 shr_mutex.unlock_shared();
37 }
38
39 int main() {
40
41 thread_group threads;
42 for (int i = 0; i < 10; ++ i) {
43 threads.create_thread(&write_process);
44 threads.create_thread(&read_process);
45 }
46
47 threads.join_all();
48
49 ::system("PAUSE");
50
51 return 0;
52 }

]]> - vs2005涓嬬紪璇戝熀浜巗tlport鐨刡oosthttp://m.shnenglu.com/thisisbin/archive/2008/12/09/68929.html璁告搗鏂?/dc:creator>璁告搗鏂?/author>Tue, 09 Dec 2008 05:22:00 GMThttp://m.shnenglu.com/thisisbin/archive/2008/12/09/68929.htmlhttp://m.shnenglu.com/thisisbin/comments/68929.htmlhttp://m.shnenglu.com/thisisbin/archive/2008/12/09/68929.html#Feedback0http://m.shnenglu.com/thisisbin/comments/commentRss/68929.htmlhttp://m.shnenglu.com/thisisbin/services/trackbacks/68929.html1銆佸畨瑁卻tlport錛屽弬鑰冩枃绔狅細http://www.cnblogs.com/DonLiang/archive/2007/10/13/923143.html
濡傛灉鏄疍EBUG妯″紡璇峰湪欏圭洰鐨勫睘鎬?>閰嶇疆灞炴?>c/c++=>鍛戒護琛岀殑闄勫姞閫夐」澧炲姞/D_STLP_DEBUG
2銆乥oost_1_37_0\tools\jam\stage涓嬭繍琛宐uild.bat緙栬瘧鐢熸垚bjam.exe騫舵嫹璐濆埌boost鏍圭洰褰?br>
3銆佷慨鏀歸厤緗枃浠禸oost_1_37_0\tools\build\v2\user-config.jam錛屽皢涓や釜stlport閫夐」鎵撳紑
4銆乿s2005鍛戒護鎻愮ず涓嬬紪璇戝懡浠わ細bjam stdlib=stlport --build-type=complete install錛屾帴涓嬫潵鏄極闀跨殑絳夊緟錛屽ぇ姒備袱涓皬鏃朵互涓婂惂

]]>
久久久WWW成人免费精品|
亚洲精品国产美女久久久|
久久午夜伦鲁片免费无码|
国色天香久久久久久久小说|
亚洲综合日韩久久成人AV|
人妻无码久久一区二区三区免费|
久久精品中文字幕无码绿巨人|
av国内精品久久久久影院|
成人精品一区二区久久久|
久久免费大片|
国产精品一区二区久久不卡|
久久99精品国产麻豆蜜芽|
亚洲日韩中文无码久久|
伊人久久大香线蕉影院95|
亚洲国产精品一区二区三区久久|
亚洲精品白浆高清久久久久久|
久久久国产精品福利免费|
久久婷婷五月综合97色直播|
久久99久久99小草精品免视看
|
久久精品国产亚洲AV香蕉|
精品熟女少妇av免费久久|
伊人情人综合成人久久网小说|
精品久久久久久中文字幕大豆网
|
久久久久人妻一区精品性色av|
久久精品国产一区二区三区日韩|
久久亚洲精品成人无码网站|
国产99久久久久久免费看|
国内精品久久久人妻中文字幕|
久久这里有精品|
无码任你躁久久久久久|
狠狠色综合网站久久久久久久
|
91久久香蕉国产熟女线看|
久久久无码精品亚洲日韩按摩|
亚洲国产精品一区二区三区久久|
久久99精品国产麻豆婷婷|
99久久精品免费国产大片|
av无码久久久久不卡免费网站|
久久久久无码精品国产|
99精品国产综合久久久久五月天|
午夜精品久久久内射近拍高清|
精品水蜜桃久久久久久久|