mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant.
* io.c (wsplit_p): new function. (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in multi-threaded mode. (io_fwrite): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2276689595
commit
2b2b77d7a7
3 changed files with 38 additions and 2 deletions
2
rubyio.h
2
rubyio.h
|
@ -39,6 +39,8 @@ typedef struct OpenFile {
|
|||
#define FMODE_SYNC 8
|
||||
#define FMODE_WBUF 16
|
||||
#define FMODE_RBUF 32
|
||||
#define FMODE_WSPLIT 0x200
|
||||
#define FMODE_WSPLIT_INITIALIZED 0x400
|
||||
|
||||
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue