0

Hi, everyone! If you have worked on ACE, this is the post for you.

I want to ensure that all the buffer contents of a file are on disk. So I want to use a fsync() or a fflush() function. I'm working with ACE_HANDLEs. Unfortunately, my searches concluded with this: only fflush() exists in ACE_OS and it takes a FILE* pointer as an argument. It will not work with an ACE_HANDLE. So, instead of replacing all my ACE_HANDLEs with FILE, do you have a solution for me?

If there is no solution with an ACE_HANDLE, can you tell me if ACE_OS::write() method ensures an immediate flush of buffer on disk?

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by GDICommander
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.