Răsfoiți Sursa

Update pthreads-emb

Jeremy Soller 6 ani în urmă
părinte
comite
4a4e641b23
2 a modificat fișierele cu 1 adăugiri și 11 ștergeri
  1. 1 1
      pthreads-emb
  2. 0 10
      src/start.rs

+ 1 - 1
pthreads-emb

@@ -1 +1 @@
-Subproject commit 6720dfdc95246f85aeb1e867e0105d4eb43ad759
+Subproject commit 4b87ab0dcdbc58910b9683e3ce561fccea05386d

+ 0 - 10
src/start.rs

@@ -44,13 +44,6 @@ unsafe fn copy_string_array(array: *const *const c_char, len: usize) -> Vec<*mut
     vec
 }
 
-// In the case that pthread is not linked, pthread_init can be replaced
-#[linkage = "weak"]
-#[no_mangle]
-extern "C" fn pthread_init() -> c_int {
-    0
-}
-
 #[inline(never)]
 #[no_mangle]
 pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
@@ -85,9 +78,6 @@ pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
     stdio::stdout = stdio::default_stdout.get();
     stdio::stderr = stdio::default_stderr.get();
 
-    // Initialize pthreads
-    pthread_init();
-
     // Call init section
     _init();