mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/utils/lib/stubs_c.c


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/utils/lib/stubs_c.c
Date: Sun, 28 Aug 2005 06:49:52 -0400

Index: mldonkey/src/utils/lib/stubs_c.c
diff -u mldonkey/src/utils/lib/stubs_c.c:1.17 
mldonkey/src/utils/lib/stubs_c.c:1.18
--- mldonkey/src/utils/lib/stubs_c.c:1.17       Sun Aug 28 10:47:39 2005
+++ mldonkey/src/utils/lib/stubs_c.c    Sun Aug 28 10:49:49 2005
@@ -844,6 +844,8 @@
 {
   struct timeval now;
   struct timespec timeout;
+
+#if !defined(PTW32_STATIC_LIB) 
   sigset_t mask;
 
   /* Block all signals so that we don't try to execute a Caml signal handler */
@@ -851,6 +853,7 @@
   pthread_sigmask(SIG_BLOCK, &mask, NULL);
   
   nice(19);
+#endif
   
   pthread_mutex_lock(&mutex);
 
@@ -1135,3 +1138,27 @@
 #endif
 }
 #endif /* defined(__MINGW32__) */
+
+
+value
+external_start (void) 
+{
+
+#if defined(HAVE_PTHREAD) && defined(PTW32_STATIC_LIB)
+       pthread_win32_process_attach_np();
+#endif
+       return Val_unit;
+
+}
+
+value
+external_exit (void) 
+{
+
+#if defined(HAVE_PTHREAD) && defined(PTW32_STATIC_LIB)
+       pthread_win32_process_detach_np();
+#endif
+
+       return Val_unit;
+}
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]