Re: Phix: Understanding Multithreading

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

Does this mean '?' is now thread safe?

Maybe/maybe/no/no:

Maybe: I have already had five or six previous attempts at this...
Maybe: ? uses sprint() uses sprintf(), and I only changed the latter.
No: Mixing output from several threads on one screen will get very messy.
No: I will never claim it is nor recommend using ? from background threads[1].

PS: I should probably also say there is some merit for a thread-safe sprintf(), and even non-1 file i/o,
but I do not feel the same for the console (or gui), [1]at least that is without an explicit enter_cs()/leave_cs().

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu