We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06156f0 commit 8b98e6aCopy full SHA for 8b98e6a
2 files changed
src/ProcessScheduler/Process.cpp
@@ -119,6 +119,21 @@
119
}
120
121
122
+#ifdef _PROCESS_TIMEOUT_INTERRUPTS
123
+
124
+ void Process::setTimeout(uint32_t timeout)
125
+ {
126
+ // Can not let interrupt happen
127
+ ATOMIC_START
128
129
+ _timeout = timeout;
130
+ }
131
+ ATOMIC_END
132
133
134
135
+#endif
136
137
#ifdef _PROCESS_STATISTICS
138
139
uint32_t Process::getAvgRunTime()
src/ProcessScheduler/Process.h
@@ -100,7 +100,7 @@ class Process
100
public:
101
inline uint32_t getTimeout() {return _timeout;}
102
protected:
103
- inline void setTimeout(uint32_t timeout) { _timeout = timeout; }
+ void setTimeout(uint32_t timeout);
104
private:
105
uint32_t _timeout;
106
0 commit comments