Mercurial > octave
comparison libinterp/corefcn/sysdep.cc @ 21557:f6663c49870c
Add comment clarifying why omp_get_num_threads is called in sysdep.cc.
* sysdep.cc: Add comment explaining why function is called and reference
bug number that is being fixed.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 29 Mar 2016 07:39:38 -0700 |
parents | 12f207a534aa |
children | 5b9868c2e212 |
comparison
equal
deleted
inserted
replaced
21556:12f207a534aa | 21557:f6663c49870c |
---|---|
311 } | 311 } |
312 | 312 |
313 void | 313 void |
314 sysdep_init (void) | 314 sysdep_init (void) |
315 { | 315 { |
316 // Use a function from libgomp to force loading of OpenMP library. | |
317 // Otherwise, a dynamically loaded library making use of OpenMP such | |
318 // as GraphicsMagick will segfault on exit (bug #41699). | |
316 #if defined (HAVE_OMP_GET_NUM_THREADS) | 319 #if defined (HAVE_OMP_GET_NUM_THREADS) |
317 omp_get_num_threads (); | 320 omp_get_num_threads (); |
318 #endif | 321 #endif |
319 | 322 |
320 #if defined (__386BSD__) || defined (__FreeBSD__) || defined (__NetBSD__) | 323 #if defined (__386BSD__) || defined (__FreeBSD__) || defined (__NetBSD__) |