-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hack to get shm variables recognized as such and not deleteing their …
…mapped memory when destroyed. probably better to replace all that by a simpler variant of the Assoc mechanism, but the use of a DPtrGDL here permits to get the memory cleaned when the referenc count drops to zero.
- Loading branch information
1 parent
92b8fec
commit 58d2bd5
Showing
8 changed files
with
116 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*************************************************************************** | ||
shm_utils.hpp - Shared memory mapping, external utilities defs | ||
------------------- | ||
begin : Dec 24 2023 | ||
copyright : (C) 2023 by Gilles Duvert | ||
email : surname dot name at free dot fr | ||
***************************************************************************/ | ||
|
||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#ifndef SHM_UTILS_HPP_ | ||
#define SHM_UTILS_HPP_ | ||
#ifndef _MSC_VER | ||
namespace lib { | ||
void help_shared(EnvT* e, std::ostream& ostr); | ||
void shm_unreference(BaseGDL* var); | ||
} // namespace | ||
#else | ||
namespace lib { | ||
void help_shared(EnvT* e, std::ostream& ostr){}; | ||
void shm_unreference(BaseGDL* var){}; | ||
} // namespace | ||
#endif | ||
#endif |