473,503 Members | 10,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net's monitor class equivilent functionality in pure c++

Hi,
I have used the Monitor/manualresetevent class in .net to sycnhronize
threads in C#, right now I'm programming in pure c++ and win32 and want to
acheive the same functionality. Whats the equivilent of that in c++?

int m_regards;

_Ab_.
Dec 15 '05 #1
3 1361

"Abubakar" <ab*******@gmail.com> wrote in message
news:OO**************@TK2MSFTNGP14.phx.gbl...
Hi,
I have used the Monitor/manualresetevent class in .net to sycnhronize
threads in C#, right now I'm programming in pure c++ and win32 and want to
acheive the same functionality. Whats the equivilent of that in c++?

int m_regards;

_Ab_.


In C++ you can use "critical section objects to synchronize threads, search
the platform SDK docs for more details.

Willy.
Dec 15 '05 #2
Thanks Willy.

Ab.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:uh**************@TK2MSFTNGP11.phx.gbl...

"Abubakar" <ab*******@gmail.com> wrote in message
news:OO**************@TK2MSFTNGP14.phx.gbl...
Hi,
I have used the Monitor/manualresetevent class in .net to sycnhronize
threads in C#, right now I'm programming in pure c++ and win32 and want to acheive the same functionality. Whats the equivilent of that in c++?

int m_regards;

_Ab_.
In C++ you can use "critical section objects to synchronize threads,

search the platform SDK docs for more details.

Willy.

Dec 15 '05 #3
Have you used BOOST? Any comments on that? Will it help me? I'm just looking
at its thread library.
http://www.boost.org

Ab.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:uh**************@TK2MSFTNGP11.phx.gbl...

"Abubakar" <ab*******@gmail.com> wrote in message
news:OO**************@TK2MSFTNGP14.phx.gbl...
Hi,
I have used the Monitor/manualresetevent class in .net to sycnhronize
threads in C#, right now I'm programming in pure c++ and win32 and want to acheive the same functionality. Whats the equivilent of that in c++?

int m_regards;

_Ab_.
In C++ you can use "critical section objects to synchronize threads,

search the platform SDK docs for more details.

Willy.

Dec 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1513
by: KK | last post by:
Dear All My requirement is to write class that is thread safe.( All public methods & static methods must be thread safe ). I found two options to implement this 1.using...
2
6925
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
3635
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.