streamWrapper::stream_lock — Advisory file locking
operationis one of the following:
LOCK_SHto acquire a shared lock (reader).
LOCK_EXto acquire an exclusive lock (writer).
LOCK_UNto release a lock (shared or exclusive).
LOCK_NBif you don't want flock() to block while locking. (not supported on Windows)
TRUE on success or
FALSE on failure.
E_WARNING if call to this method fails (i.e. not implemented).