c# Programming Glossary: guarded
Volatile vs. Interlocked vs. lock http://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock any other threads from executing any other code which is guarded by locker . Using locks also prevents the multi cpu reordering..
How to prevent an exception in a background thread from terminating an application? http://stackoverflow.com/questions/186854/how-to-prevent-an-exception-in-a-background-thread-from-terminating-an-applicati the thread and you are not absolutely sure it's properly guarded and your main thread must be resilient there's a workaround...
Handling exceptions thrown by “Dispose” while unwinding nested “using” statements http://stackoverflow.com/questions/19238521/handling-exceptions-thrown-by-dispose-while-unwinding-nested-using-statement would imply that Dispose should throw an exception if the guarded block would otherwise complete normally but if the guarded block.. guarded block would otherwise complete normally but if the guarded block fails to call Close because an exception occurred first..
Are .NET ref parameters thread-safe, or vulnerable to unsafe multithreaded access? http://stackoverflow.com/questions/679654/are-net-ref-parameters-thread-safe-or-vulnerable-to-unsafe-multithreaded-acces possible for a reference type class but can be easily guarded against by appropriate locking within that class. We can't however..
How to speed adding items to a ListView? http://stackoverflow.com/questions/9008310/how-to-speed-adding-items-to-a-listview to 'restore' them after InsertItems is called they're both guarded by a check against owner.IsHandleCreated owner being the ListView.. the items into the native listview. Some of the passes are guarded by checks against the Handle being created so if you can add..
|