Actions
Feature #9420
closedwarn and puts should be atomic
[ruby-core:<unknown>]
Description
Since we added use of writev in r44618, we should make warn/puts atomic.
It would make development of multiprocess/multithreaded processes easier,
I think it was intended to be atomic based on old comments in io.c:
- /*
- * xxx: use writev to avoid double write if available
- * writev may help avoid context switch between "a" and "\n" in
- * STDERR.puts "a" [ruby-dev:25080] (rebroken since native threads
- * introduced in 1.9)
- */
Updated by Glass_saga (Masaki Matsushita) over 10 years ago
- Assignee set to Glass_saga (Masaki Matsushita)
Updated by shyouhei (Shyouhei Urabe) almost 7 years ago
- Related to Feature #9323: IO#writev added
Updated by nobu (Nobuyoshi Nakada) almost 7 years ago
- Has duplicate Feature #14042: IO#puts: use writev if available added
Updated by Glass_saga (Masaki Matsushita) almost 4 years ago
- Status changed from Open to Closed
For now, warn and puts already use writev if available.
Actions
Like0
Like0Like0Like0Like0Like0Like0