Lock Threads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Analizer1

    Lock Threads

    Hi
    I have a Static Class with a few Methods/functions
    im trying to make them thread safe...
    public static myclass
    {
    pubice static void dosomework()
    {
    //how to lock in a static method
    .....do some stuff
    }
    }

    tks


  • Jon Skeet [C# MVP]

    #2
    Re: Lock Threads

    Analizer1 <vettes_n_jets@ yahoo.comwrote:
    I have a Static Class with a few Methods/functions
    im trying to make them thread safe...
    public static myclass
    {
    pubice static void dosomework()
    {
    //how to lock in a static method
    .....do some stuff
    }
    }
    See http://pobox.com/~skeet/csharp/threads/lockchoice.shtml

    --
    Jon Skeet - <skeet@pobox.co m>
    http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
    World class .NET training in the UK: http://iterativetraining.co.uk

    Comment

    Working...