Hi Anonymous,
Again, only replacing background with run doesn't help the OP.
run is reponsible for NOT forking, so the sharing of a global works
When is this sharing supposed to happen? It seems the OP wants to read from the queue asynchronously, so if the main process is tied up in run, handling requests that write to the queue, when do you propose the process should read the queue? Perhaps you could show some working code as a proof-of-concept of your idea, since I can't tell whether you've got a valid point.
Regards,
-- Hauke D
In reply to Re^4: Global variables and SimpleHTTP request handler
by haukex
in thread Global variables and SimpleHTTP request handler
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |