public ContextSwitchTest(String name)
        {
            Name = name;

            signal1 = NSFOSSignal.create("Signal1");
            signal2 = NSFOSSignal.create("Signal2");

            thread1 = NSFOSThread.create("Thread1", thread1Loop, NSFOSThread.HighestPriority);
            thread2 = NSFOSThread.create("Thread2", thread2Loop, NSFOSThread.HighestPriority);
        }
 /// <summary>
 /// Creates an event thread.
 /// </summary>
 /// <param name="name">The name of the thread.</param>
 /// <param name="priority">The priority of the thread.</param>
 public NSFEventThread(NSFString name, int priority)
     : base(name, priority)
 {
     signal = NSFOSSignal.create(Name);
     startThread();
 }
Exemple #3
0
 /// <summary>
 /// Creates an event thread.
 /// </summary>
 /// <param name="name">The name of the thread.</param>
 /// <param name="priority">The priority of the thread.</param>
 public NSFEventThread(NSFString name, int priority)
     : base(name, priority)
 {
     signal = NSFOSSignal.create(Name);
     startThread();
 }
 public TestHarness()
 {
     firstSignal = NSFOSSignal.create("FirstSignal");
     secondSignal = NSFOSSignal.create("SecondSignal");
 }
 /// <summary>
 /// Creates an operating system timer.
 /// </summary>
 /// <param name="name">The name of the timer.</param>
 public NSFOSTimer(NSFString name)
     : base(name)
 {
     timerSignal = NSFOSSignal.create(name);
 }
 /// <summary>
 /// Creates an operating system timer.
 /// </summary>
 /// <param name="name">The name of the timer.</param>
 public NSFOSTimer(NSFString name)
     : base(name)
 {
     timerSignal = NSFOSSignal.create(name);
 }