Home » U++ Library support » U++ MT-multithreading and servers » PROPOSAL: Monitor mutex in objects
|
Re: PROPOSAL: Monitor mutex in objects [message #27387 is a reply to message #27378] |
Thu, 15 July 2010 14:11 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
here comes package on how i thought of it...
short description:
first section uses 2 Threads, operating on same String, using INTERLOCKED, which doesnt work, because it creates internal static Mutex,
second secton uses a helper construction, LOCKED, which uses a LOCKER placed Mutex instance in class to protect things, this could be done explicitly by placing a Mutex in class, and using Mutex::Lock(instance) scoped helper as well.
third section uses a Single() Mutex map, to protect arbitrary objects from 'outside' as i understood it from C#
maybe its helpfull..
-
Attachment: SigMon.rar
(Size: 1.93KB, Downloaded 297 times)
[Updated on: Thu, 15 July 2010 14:12] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 03:38:15 CEST 2024
Total time taken to generate the page: 0.09549 seconds
|