diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-21 09:39:49 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-21 09:39:49 +0200 |
commit | cf1f5367d2a87cb0585009f343eeb3350efbb076 (patch) | |
tree | e97befc8c3a54a9f6d89457797537672b837706a /TODOS | |
parent | e9dde47720316d5450c434121989c4b524fe79a6 (diff) | |
download | crawler-cf1f5367d2a87cb0585009f343eeb3350efbb076.tar.gz crawler-cf1f5367d2a87cb0585009f343eeb3350efbb076.tar.bz2 |
fixed singleton double-instance problem on Windows, not a really nice solution
Diffstat (limited to 'TODOS')
-rwxr-xr-x | TODOS | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,14 @@ - singleton with registered pointers, so they can be shared between - loadable modules on Windows, example is the logger singleton currently + loadable modules on Windows, example is the logger singleton currently: + - exported data segments + #pragma data_seg("SHARED") + #pragma data_seg() + #pragma comment(linker, "/section:SHARED,RWS") + - http://support.microsoft.com/kb/168958/en-us + - http://www.xing.com/net/moderncpp/allgemeines-zu-c-101269/singletons-in-dll-s-32375749 + - http://stackoverflow.com/questions/1880052/c-duplicated-static-member + - http://stackoverflow.com/questions/4911994/sharing-a-global-static-variable-between-a-process-and-dll + - http://www.ogre3d.org/forums/viewtopic.php?p=75622&sid=ce193664e1d3d7c4af509e6f4e2718c6 - rewrite logger as proper singleton - use traits in rewindinputstream, alternative wrappers for char/string traits depending on underlying io stream |