Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OpenExisting()

static Mutex System.Threading.Mutex.OpenExisting ( string name)
inlinestatic

Definition at line 35 of file Mutex.cs.

36 {
37 Mutex result;
38 return OpenExistingWorker(name, out result) switch
39 {
40 OpenExistingResult.NameNotFound => throw new WaitHandleCannotBeOpenedException(),
41 OpenExistingResult.NameInvalid => throw new WaitHandleCannotBeOpenedException(SR.Format(SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle, name)),
42 OpenExistingResult.PathNotFound => throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name)),
43 _ => result,
44 };
45 }
static OpenExistingResult OpenExistingWorker(string name, out Mutex result)
Definition Mutex.cs:70

References System.SR.Format(), System.SR.IO_PathNotFound_Path, System.Threading.Mutex.OpenExistingWorker(), and System.SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle.