Mercurial > octave
changeset 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 | 6619945e4434 |
files | libinterp/corefcn/sysdep.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/sysdep.cc Mon Mar 28 22:56:18 2016 -0400 +++ b/libinterp/corefcn/sysdep.cc Tue Mar 29 07:39:38 2016 -0700 @@ -313,6 +313,9 @@ void sysdep_init (void) { + // Use a function from libgomp to force loading of OpenMP library. + // Otherwise, a dynamically loaded library making use of OpenMP such + // as GraphicsMagick will segfault on exit (bug #41699). #if defined (HAVE_OMP_GET_NUM_THREADS) omp_get_num_threads (); #endif