Rename a status enum member for Mutex::TryLock.
I changed it to kLockFailed, because kUnlocked seemed not to be a
particularly descriptive name.
Change-Id: Ifdb2ecbf0837cc4b6c40036eedd35d609ada747f
diff --git a/aos/linux_code/ipc_lib/mutex.cc b/aos/linux_code/ipc_lib/mutex.cc
index 796b841..c5b8652 100644
--- a/aos/linux_code/ipc_lib/mutex.cc
+++ b/aos/linux_code/ipc_lib/mutex.cc
@@ -44,7 +44,7 @@
case 0:
return State::kLocked;
case 4:
- return State::kUnlocked;
+ return State::kLockFailed;
default:
LOG(FATAL, "mutex_trylock(%p(=%" PRIu32 ")) failed with %d\n",
&impl_, impl_.futex, ret);