working on thread, assembly is trolling me somehow
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
1 parent
bc0c885052
commit
5a4f8a561e
4 files changed
+117
-4
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ impl<T> AsyncMutex<T> {
|
||||
}
|
||||
|
||||
pub fn try_lock(&self) -> Option<AsyncMutexGuard<T>> {
|
||||
if self.lock.try_lock() {
|
||||
if !self.lock.try_lock() {
|
||||
Some(AsyncMutexGuard { mutex: self })
|
||||
} else {
|
||||
None
|
||||
|
||||