function ResourceStreamWrapper::stream_lock in D7 Media 6
Overrides StreamWrapperInterface::stream_lock
File
- resource/
ResourceStreamWrapper.inc, line 114
Class
- ResourceStreamWrapper
- A base class for Resource Stream Wrappers.
Code
function stream_lock($operation) {
if (in_array($operation, array(
LOCK_SH,
LOCK_EX,
LOCK_UN,
LOCK_NB,
))) {
return flock($this->handle, $operation);
}
return TRUE;
}