Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Mutex class
Message
De
19/06/2007 06:07:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/06/2007 17:39:19
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01234134
Message ID:
01234187
Vues:
9
>Hi all,
>
>I am need of limiting access to some methods in a class to a single case. I am looking at the use of Mutex but it seems to have some limitations. First if the same thread calls the method twice it would be allowed. This doesn't work for me since all calls to the methods would be coming from the main application thread. Does anybody have any ideas on this?
>
>My class contains several methods that send commands over the serial port. I need to block any additional commands until the serial port responds to the first command. Is there such a thing as a Queue?
>
>Thanks
>Tim

Maybe Queue class could help.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform