old wb_write becomes wb_append, and a new write one is added that clears buffer.
get_active function for getting current window
14: trying to fix thread issue
having added a negative value to the timeout makes it infinite. the purpose is to block ANY operation that could take time, even if it's in micro second. that way, the main thread can have a better chance of catching up with the second thread.
wb_write
becomeswb_append
, and a new write one is added that clears buffer.get_active
function for getting current window14: trying to fix thread issue