/[mldonkey]/mldonkey/src/utils/lib/stubs_c.c
ViewVC logotype

Diff of /mldonkey/src/utils/lib/stubs_c.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by spiralvoice, Sun Aug 28 10:47:39 2005 UTC revision 1.18 by spiralvoice, Sun Aug 28 10:49:49 2005 UTC
# Line 844  static void * hasher_thread(void * arg) Line 844  static void * hasher_thread(void * arg)
844  {  {
845    struct timeval now;    struct timeval now;
846    struct timespec timeout;    struct timespec timeout;
847    
848    #if !defined(PTW32_STATIC_LIB)  
849    sigset_t mask;    sigset_t mask;
850    
851    /* Block all signals so that we don't try to execute a Caml signal handler */    /* Block all signals so that we don't try to execute a Caml signal handler */
# Line 851  static void * hasher_thread(void * arg) Line 853  static void * hasher_thread(void * arg)
853    pthread_sigmask(SIG_BLOCK, &mask, NULL);    pthread_sigmask(SIG_BLOCK, &mask, NULL);
854        
855    nice(19);    nice(19);
856    #endif
857        
858    pthread_mutex_lock(&mutex);    pthread_mutex_lock(&mutex);
859    
# Line 1135  statfs_statfs (value pathv) Line 1138  statfs_statfs (value pathv)
1138  #endif  #endif
1139  }  }
1140  #endif /* defined(__MINGW32__) */  #endif /* defined(__MINGW32__) */
1141    
1142    
1143    value
1144    external_start (void)
1145    {
1146    
1147    #if defined(HAVE_PTHREAD) && defined(PTW32_STATIC_LIB)
1148            pthread_win32_process_attach_np();
1149    #endif
1150            return Val_unit;
1151    
1152    }
1153    
1154    value
1155    external_exit (void)
1156    {
1157    
1158    #if defined(HAVE_PTHREAD) && defined(PTW32_STATIC_LIB)
1159            pthread_win32_process_detach_np();
1160    #endif
1161    
1162            return Val_unit;
1163    }
1164    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26