Fixed win32 dll-export
authorkhizmax <libcds.dev@gmail.com>
Sun, 22 Jan 2017 09:36:29 +0000 (12:36 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 22 Jan 2017 09:36:29 +0000 (12:36 +0300)
cds/gc/dhp.h
cds/gc/hp.h
projects/Win/vc14/cds.sln
src/dhp.cpp
src/hp.cpp

index 9f0387c..2cf4645 100644 (file)
@@ -594,7 +594,7 @@ namespace cds { namespace gc {
             static CDS_EXPORT_API void detach_thread();
 
             /// Get internal statistics
-            void statistics( stat& st );
+            CDS_EXPORT_API void statistics( stat& st );
 
         public: // for internal use only
             /// The main garbage collecting function
@@ -1520,8 +1520,7 @@ namespace cds { namespace gc {
             }
             \endcode
         */
-        static stat const& postmortem_statistics();
-
+        CDS_EXPORT_API static stat const& postmortem_statistics();
     };
 
 }} // namespace cds::gc
index aedc47b..33a2d05 100644 (file)
@@ -526,7 +526,7 @@ namespace cds { namespace gc {
             static CDS_EXPORT_API void detach_thread();
 
             /// Get internal statistics
-            void statistics( stat& st );
+            CDS_EXPORT_API void statistics( stat& st );
 
         public: // for internal use only
             /// The main garbage collecting function
@@ -1519,7 +1519,7 @@ namespace cds { namespace gc {
             }
             \endcode
         */
-        static stat const& postmortem_statistics();
+        CDS_EXPORT_API static stat const& postmortem_statistics();
     };
 
 }} // namespace cds::gc
index 3266280..c176115 100644 (file)
@@ -395,8 +395,16 @@ EndProject
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tree", "tree", "{31977D29-25C2-4FEC-9176-15247A15A9B4}"\r
 EndProject\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "stress-map-del3", "stress-map-del3.vcxproj", "{729E28BB-F36F-4462-8434-9C252C286525}"\r
+       ProjectSection(ProjectDependencies) = postProject\r
+               {A34CED07-A442-4FA1-81C4-F8B9CD3C832B} = {A34CED07-A442-4FA1-81C4-F8B9CD3C832B}\r
+               {408FE9BC-44F0-4E6A-89FA-D6F952584239} = {408FE9BC-44F0-4E6A-89FA-D6F952584239}\r
+       EndProjectSection\r
 EndProject\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "stress-set-del3", "stress-set-del3.vcxproj", "{E91A1938-BB89-4676-9C9F-69AA697CB488}"\r
+       ProjectSection(ProjectDependencies) = postProject\r
+               {A34CED07-A442-4FA1-81C4-F8B9CD3C832B} = {A34CED07-A442-4FA1-81C4-F8B9CD3C832B}\r
+               {408FE9BC-44F0-4E6A-89FA-D6F952584239} = {408FE9BC-44F0-4E6A-89FA-D6F952584239}\r
+       EndProjectSection\r
 EndProject\r
 Global\r
        GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
index 6a0ec71..462de95 100644 (file)
@@ -501,7 +501,7 @@ namespace cds { namespace gc { namespace dhp {
         scan( pThis );
     }
 
-    void smr::statistics( stat& st )
+    CDS_EXPORT_API void smr::statistics( stat& st )
     {
         st.clear();
 #   ifdef CDS_ENABLE_HPSTAT
@@ -526,7 +526,7 @@ namespace cds { namespace gc { namespace dhp {
 
 }}} // namespace cds::gc::dhp
 
-/*static*/ cds::gc::DHP::stat const& cds::gc::DHP::postmortem_statistics()
+CDS_EXPORT_API /*static*/ cds::gc::DHP::stat const& cds::gc::DHP::postmortem_statistics()
 {
     return cds::gc::dhp::s_postmortem_stat;
 }
index 50dd605..6481a2c 100644 (file)
@@ -486,7 +486,7 @@ namespace cds { namespace gc { namespace hp {
         }
     }
 
-    void smr::statistics( stat& st )
+    CDS_EXPORT_API void smr::statistics( stat& st )
     {
         st.clear();
 #   ifdef CDS_ENABLE_HPSTAT
@@ -505,7 +505,7 @@ namespace cds { namespace gc { namespace hp {
 
 }}} // namespace cds::gc::hp
 
-/*static*/ cds::gc::HP::stat const& cds::gc::HP::postmortem_statistics()
+CDS_EXPORT_API /*static*/ cds::gc::HP::stat const& cds::gc::HP::postmortem_statistics()
 {
     return cds::gc::hp::s_postmortem_stat;
 }