Meaningful error codes instead of plain -1

This commit is contained in:
Pavel Kirienko
2014-03-28 19:21:08 +04:00
parent 4886e2194f
commit ae63ad5db5
34 changed files with 112 additions and 73 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ int Scheduler::spin(MonotonicTime deadline)
if (inside_spin_) // Preventing recursive calls
{
assert(0);
return -1;
return -ErrRecursiveCall;
}
inside_spin_ = true;