گروه فنی مهندسی آرکام

پروژه های دانشجویی ، آموزش ، مشاوره ، فروش آثار

گروه فنی مهندسی آرکام

پروژه های دانشجویی ، آموزش ، مشاوره ، فروش آثار

گروه فنی مهندسی آرکام

گرداننده و نگارنده : محمد نوری

البرز ، کرج ، گلشهر

09125623558
Nouri.Iut@Gmail.Com

جهت حمایت از این وبلاگ، ما را به یک فنجان چای داغ مهمان کنید.
6273-8111-1003-9762

دنبال کنندگان ۳ نفر
این وبلاگ را دنبال کنید

تبلیغات

آخرین نظرات

پیوندها

 /* Sample C/C++, Windows, link to kernel32.dll */

#include <windows.h>

 

static CRITICAL_SECTION cs;

 

/* Initialize the critical section before entering multi-threaded context. */

InitializeCriticalSection(&cs);

 

void f()

{

    /* Enter the critical section -- other threads are locked out */

    EnterCriticalSection(&cs);

 

    /* Do some thread-safe processing! */

 

    /* Leave the critical section -- other threads can now EnterCriticalSection() */

    LeaveCriticalSection(&cs);

}

 

/* Release system object when all finished -- usually at the end of the cleanup code */

DeleteCriticalSection(&cs);

نظرات  (۰)

هیچ نظری هنوز ثبت نشده است

ارسال نظر

ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی