Skip to content

Commit 49bd98f

Browse files
committed
Do not reference pthread_atfork under windows
1 parent a14f98c commit 49bd98f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/others/memory.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,12 @@ void openblas_fork_handler()
264264
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035
265265
// In the mean time build with USE_OPENMP=0 or link against another
266266
// implementation of OpenMP.
267+
#ifndef OS_WINDOWS
267268
int err;
268269
err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL);
269270
if(err != 0)
270271
openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n");
272+
#endif
271273
}
272274

273275
int blas_get_cpu_number(void){

0 commit comments

Comments
 (0)