Python-2.7: No SIGINT possible in while loop with locks -
i implemented while loop locks in python-2.7 (see example) handle 2 lists loaded values other thread each. code works, not handle sigint (ctrl-c) anymore. example:
while true: lock1: if 0 < len(data_buf1): foo(data_buf1.pop(0)) lock2: if 0 < len(data_buf2): bar(data_buf2.pop(0)
what enable keyboard commands again?
update loop runs in main python process.
Comments
Post a Comment