Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TactilityProject/Tactility
/ setState
Method
setState
TactilityFreeRtos/Include/Tactility/Thread.h:91–98 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
89
portBASE_TYPE affinity = -1;
90
91
void setState(State newState) {
92
mutex.lock();
93
state = newState;
94
if (stateCallback) {
95
stateCallback(state, stateCallbackContext);
96
}
97
mutex.unlock();
98
}
99
100
public:
101
Callers
1
mainBody
Method · 0.45
Calls
2
lock
Method · 0.45
unlock
Method · 0.45
Tested by
no test coverage detected