Beispiel #1
0
 /// <summary>
 /// These allow you to synchronize variable updates from your main program to any threads running in your program.
 /// keyNum is a number from 0 to 3 and represents a “key”. When another process tries to lock the same key,
 /// it will be stalled until the first process has unlocked the same key.
 /// </summary>
 /// <param name="key">The key.</param>
 public void Unlock(ThreadLockKey key) => WiringPi.PiUnlock((int)key);
Beispiel #2
0
 /// <summary>
 /// These allow you to synchronize variable updates from your main program to any threads running in your program.
 /// keyNum is a number from 0 to 3 and represents a “key”. When another process tries to lock the same key,
 /// it will be stalled until the first process has unlocked the same key.
 /// </summary>
 /// <param name="key">The key.</param>
 public void Unlock(ThreadLockKey key)
 {
     WiringPi.piUnlock((int)key);
 }
Beispiel #3
0
 /// <summary>
 /// These allow you to synchronize variable updates from your main program to any threads running in your program.
 /// keyNum is a number from 0 to 3 and represents a “key”. When another process tries to lock the same key,
 /// it will be stalled until the first process has unlocked the same key.
 /// </summary>
 /// <param name="key">The key.</param>
 public void Lock(ThreadLockKey key)
 {
     WiringPi.PiLock((int)key);
 }