forum-msg-id-133937-edit

Original date:2019-06-04 07:59:11 Edited by: petelomax Subject: Re: Phix: Understanding Multithreading

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.

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), at least that is without an explicit enter_cs()/leave_cs().

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu