Interlocked 系列
long count = 0; ::InterlockedIncrement(count); // 會進去當前的ThreadCS 系列
long count = 0; ::EnterCriticalSection(&m_cs); // 要告知我要進入哪個Thread ++count; ::LeaveCriticalSection(&m_cs)
long count = 0; ::InterlockedIncrement(count); // 會進去當前的ThreadCS 系列
long count = 0; ::EnterCriticalSection(&m_cs); // 要告知我要進入哪個Thread ++count; ::LeaveCriticalSection(&m_cs)
Copyright 2010 亞嘎米. Designed by CSS Templates | Blogger Templates by TeknoMobi | Sponsored by Domain Promo Codes
0 意見:
張貼留言