adam olsen kjbnfagmailcom tue mar 18 2008 204 pm marcin qrczak kowalczyk wrote dnia 18032008 wt godzinie 1337 0600 adam olsen pisze sort blocking wait use mean dont one meant dont one iteration whole queue equivalent trypop prompts question use cases pop wait ie blocking queue empty finalizer thread blocks somethings deleted may need better api eventually switch threadpool finalizers though used weakref callbacks must synchronized rest program unless operations shared data already atomic realized design deathqueues suffices cases like weakkeydictionary less convenient queue checked exactly places design callbacks would lock shared data regarding interrupts involved scheme threads blocking unblocking interrupts counter number blocks special synchronous mode interruptible blocking operations similar pthread_cancel_deferred default pthread_cancel_asynchronous signals dont necessarily cause exception execute signal handler often throws exception ive seen simpler interrupt blocking scheme proposed python based design haskell httpwwwcswilliamsedufreundpaperspythonpdf seems abandoned paper 2002 havent heard anything newer think deferred vastly better default translate everybody else deferred context means set flag io functions check means youll get cancelled exception documented points contrast asynchronous may raise exception totally arbitrary points maybe finally portion tryfinally block maybe call osclose something rely note though cancellation signal handler mechanism theres dedicated signal handler thread process signals cancellation last ditch abandon hope start tearing program least part option incidentally although currently support deferred cancellation id eventually like add sort option asynchronous tend call forced cancellation could used know simple cpu bound math loop 101010 backup interactive interpreter interactive interpreter needs modified use properly anyway though im hurry adam olsen aka rhamphoryncus _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 074140 0600 python3000 pythonsafethread project status