C# Class System.Threading.Monitor

显示文件 Open project: kumpera/mono Class Usage Examples

Public Methods

Method Description
Enter ( object obj, bool &lockTaken ) : void
Pulse ( object obj ) : void
PulseAll ( object obj ) : void
TryEnter ( object obj ) : bool
TryEnter ( object obj, System.TimeSpan timeout ) : bool
TryEnter ( object obj, int millisecondsTimeout ) : bool
TryEnter ( object obj, System.TimeSpan timeout, bool &lockTaken ) : void
TryEnter ( object obj, bool &lockTaken ) : void
TryEnter ( object obj, int millisecondsTimeout, bool &lockTaken ) : void
Wait ( object obj ) : bool
Wait ( object obj, System.TimeSpan timeout ) : bool
Wait ( object obj, System.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_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
try_enter_with_atomic_var ( object obj, int millisecondsTimeout, bool &lockTaken ) : void

Method Details

Enter() public static method

public static Enter ( object obj, bool &lockTaken ) : void
obj object
lockTaken bool
return void

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, System.TimeSpan timeout ) : bool
obj object
timeout System.TimeSpan
return bool

TryEnter() public static method

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

TryEnter() public static method

public static TryEnter ( object obj, System.TimeSpan timeout, bool &lockTaken ) : void
obj object
timeout System.TimeSpan
lockTaken bool
return void

TryEnter() public static method

public static TryEnter ( object obj, bool &lockTaken ) : void
obj object
lockTaken bool
return void

TryEnter() public static method

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

Wait() public static method

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

Wait() public static method

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

Wait() public static method

public static Wait ( object obj, System.TimeSpan timeout, bool exitContext ) : bool
obj object
timeout System.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