>On Fri, Jan 05, 2001 at 12:37:39PM -0500, Dan Sugalski wrote: 
 
>> I've been pretty much assuming we'd need: 
 
>> 
 
>>    open 
 
>>    close 
 
>>    seek 
 
>>    tell 
 
>>    push_filter 
 
>>    pop_filter 
 
>>    read 
 
>>    unread 
 
>>    write 
 
>>    prefetch 
 
>> 
 

 
What about pread and pwrite, for reading and writing to seekable files
 
in multiple threads? pread and pwrite get as a parameter a offset that
 
they use to seek the file before reading or writing, but doing it
 
atomically, so that many threads can use them concurrently, without
 
the risk that another thread will re-seek the file between a seek and
 
a read/write operation.
 

 
Branden.
 

 

_________________________________________________________
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://www.ig.com.br/paginas/assineigmail.html

Reply via email to