Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LemonOSProject/LemonOS
/ AcquireRead
Method
AcquireRead
Kernel/include/lock.h:22–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
20
FilesystemLock() {}
21
22
void AcquireRead(){
23
acquireLock(&lock);
24
25
activeReaders++;
26
27
if(activeReaders == 1){
28
acquireLock(&fileLock);
29
}
30
31
releaseLock(&lock);
32
}
33
34
void AcquireWrite(){
35
acquireLock(&fileLock);
Callers
4
ReadDir
Method · 0.80
FindDir
Method · 0.80
Read
Method · 0.80
ReadLink
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected