فهرست منبع

Fix double lock in pte

Jeremy Soller 6 سال پیش
والد
کامیت
e93ead5a8f
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      src/platform/redox/pte.rs

+ 0 - 1
src/platform/redox/pte.rs

@@ -63,7 +63,6 @@ pub unsafe extern "C" fn pte_osThreadCreate(entryPoint: pte_osThreadEntryPoint,
     let id = syscall::clone(syscall::CLONE_VM | syscall::CLONE_FS | syscall::CLONE_FILES).unwrap();
 
     let mutex = Box::into_raw(Box::new(0));
-    pte_osMutexLock(mutex);
 
     if id == 0 {
         // Wait until pte_osThreadStart