News for hackers. Stuff that matters.
Re:LibPhenom, a high-performance C eventing framework from F... by escaped_hn on Monday September 16, 2013 @05:19PM (#6395980)
maybe because printf is blocking and will block the event loop.
Re:LibPhenom, a high-performance C eventing framework from F... by codehero on Monday September 16, 2013 @06:20PM (#6396290)
I don't know if that's the reason, but there's no reason formatted output HAS to:

1) block at the caller, ever

2) have its data parameters pushed onto the stack

3) print all or nothing to a single buffer

4) identify the data type or modifier by the first letter of its English name (int, long, etc)

5) have its core modified to add functionality

Re:LibPhenom, a high-performance C eventing framework from F... by otterley on Monday September 16, 2013 @06:24PM (#6396303)
Unlikely, unless the output stream's buffer is full, in which case you pretty much have no choice but to block. stdout/stderr are two channels one generally should not write to in a nonblocking fashion.