Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
7f5222d4
Commit
7f5222d4
authored
Mar 13, 2006
by
Mathieu Malaterre
Browse files
ENH: Fix dashboard with coverage
parent
7b36bf6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/kwsys/DynamicLoader.cxx
View file @
7f5222d4
...
...
@@ -167,7 +167,13 @@ LibHandle DynamicLoader::OpenLibrary(const char* libname )
//----------------------------------------------------------------------------
int
DynamicLoader
::
CloseLibrary
(
LibHandle
lib
)
{
bool
success
=
NSUnLinkModule
(
lib
,
NSUNLINKMODULE_OPTION_NONE
);
// Initially this function was written using NSUNLINKMODULE_OPTION_NONE, but when
// the code is compiled with coverage on, one cannot close the library properly
// so instead of not unloading the library. We use a special option:
// NSUNLINKMODULE_OPTION_KEEP_MEMORY_MAPPED
// With this option the memory for the module is not deallocated
// allowing pointers into the module to still be valid.
bool
success
=
NSUnLinkModule
(
lib
,
NSUNLINKMODULE_OPTION_KEEP_MEMORY_MAPPED
);
return
success
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment