This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Queue import Queue, Empty | |
from functools import wraps | |
from threading import Thread, Semaphore | |
ctrlc_queue = Queue() | |
exit_sem = Semaphore(0) # Read: there are 0 ctrlc threads on start-up | |
def needs_ctrlc(fun): | |
@wraps(fun) | |
def wrapped(*args, **kwargs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Diagnostics; | |
using System.Collections.Concurrent; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; |
NewerOlder