Wait barrier for asynchronous streamRead and kernel calls

Discussion created by m.wagner on Jul 22, 2008

I want to get the exact time for kernel calls and streamReads but they are non-blocking so I cant get a real timestamp for the end of the call. So I always took a streamWrite to synchronize. But in this way I get an overhead for the streamWrite an can again not get an exact timestamp.

So my question is: Does anybody know about an other way to sync after streamRead or kernel calls?

I would be thankful for any kind of help.