MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / lock

Method lock

src/server/lcdapi/api/LCDMutex.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void LCDMutex::lock() {
37 if (_owner != std::this_thread::get_id()) {
38 _mutex.lock();
39 _owner = std::this_thread::get_id();
40 }
41}
42
43void LCDMutex::unlock() {
44 _mutex.unlock();

Callers 15

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
setTitleMethod · 0.80
getTitleMethod · 0.80
setArtistMethod · 0.80
getArtistMethod · 0.80
setAlbumMethod · 0.80
getAlbumMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by 8

mainFunction · 0.64
mainFunction · 0.64
setTitleMethod · 0.64
getTitleMethod · 0.64
setArtistMethod · 0.64
getArtistMethod · 0.64
setAlbumMethod · 0.64
getAlbumMethod · 0.64