Its probably not even as unlikely as it might seem. peek() releases the mutex, unless I am mistaken.
/ Per Hedbor ()
Previous text:
2003-03-19 23:30: Subject: I/O callbacks in blocking mode
Some other thread might manage to read the data between the calls to peek() and read().
/ Martin Stjernholm, Roxen IS