C# Class System.Threading.Monitor.Monitor

显示文件 Open project: runefs/Marvin

Public Methods

Method Description
Pulse ( object obj ) : void
PulseAll ( object obj ) : void
TryEnter ( object obj ) : bool
TryEnter ( object obj, TimeSpan timeout ) : bool
TryEnter ( object obj, int millisecondsTimeout ) : bool
Wait ( object obj ) : bool
Wait ( object obj, TimeSpan timeout ) : bool
Wait ( object obj, TimeSpan timeout, bool exitContext ) : bool
Wait ( object obj, int millisecondsTimeout ) : bool
Wait ( object obj, int millisecondsTimeout, bool exitContext ) : bool

Private Methods

Method Description
Enter ( object obj ) : void
Exit ( object obj ) : void
Monitor ( ) : System.Runtime.CompilerServices
Monitor_pulse ( object obj ) : void
Monitor_pulse_all ( object obj ) : void
Monitor_test_synchronised ( object obj ) : bool
Monitor_try_enter ( object obj, int ms ) : bool
Monitor_wait ( object obj, int ms ) : bool

Method Details

Pulse() public static method

public static Pulse ( object obj ) : void
obj object
return void

PulseAll() public static method

public static PulseAll ( object obj ) : void
obj object
return void

TryEnter() public static method

public static TryEnter ( object obj ) : bool
obj object
return bool

TryEnter() public static method

public static TryEnter ( object obj, TimeSpan timeout ) : bool
obj object
timeout TimeSpan
return bool

TryEnter() public static method

public static TryEnter ( object obj, int millisecondsTimeout ) : bool
obj object
millisecondsTimeout int
return bool

Wait() public static method

public static Wait ( object obj ) : bool
obj object
return bool

Wait() public static method

public static Wait ( object obj, TimeSpan timeout ) : bool
obj object
timeout TimeSpan
return bool

Wait() public static method

public static Wait ( object obj, TimeSpan timeout, bool exitContext ) : bool
obj object
timeout TimeSpan
exitContext bool
return bool

Wait() public static method

public static Wait ( object obj, int millisecondsTimeout ) : bool
obj object
millisecondsTimeout int
return bool

Wait() public static method

public static Wait ( object obj, int millisecondsTimeout, bool exitContext ) : bool
obj object
millisecondsTimeout int
exitContext bool
return bool