Compare commits

...

2 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 8d9db7f91a Event
- Added a TODO
2023-06-29 16:41:21 +02:00
Tristan B. Velloza Kildaire 487d6d61c4 Event
- Cleaned up commented-out code
2023-06-29 16:41:10 +02:00
1 changed files with 1 additions and 52 deletions

View File

@ -625,55 +625,4 @@ unittest
thread1.join();
}
// unittest
// {
// Event event = new Event();
// class TestThread : Thread
// {
// private Event event;
// this(Event event)
// {
// super(&worker);
// this.event = event;
// }
// public void worker()
// {
// writeln("("~to!(string)(Thread.getThis().id())~") Thread is waiting...");
// try
// {
// /* Wait */
// event.wait();
// }
// catch(InterruptedException e)
// {
// writeln("Had an interrupt");
// }
// }
// }
// TestThread thread1 = new TestThread(event);
// thread1.start();
// Thread.sleep(dur!("seconds")(10));
// writeln("Main thread is going to notify two threads");
// // TODO: Add assert to check
// /* Wake up all sleeping on this event */
// // event.notifyAll();
// import core.thread.osthread : getpid;
// writeln("Cur pid: ", getpid());
// /* Wait for all threads to exit */
// thread1.join();
// }
// TODO: Interruption test