Giter VIP home page Giter VIP logo

Comments (4)

khizmax avatar khizmax commented on August 24, 2024

Can you provide your main.cpp?
Or any usecase with that error.

from libcds.

kakysha avatar kakysha commented on August 24, 2024

If it matters, here is the beginning of main.cpp:

#include <string>
#include <sstream>
#include <unistd.h>
#include "fcgio.h"
#include "pqxx/pqxx"
#include <regex>
#include <algorithm>
#include <ctime>
#include <unordered_map>
#include "cds/opt/hash.h"
#include "cds/container/michael_list_hp.h"
#include "cds/container/split_list_map.h"
namespace cc = cds::container;

using namespace std;

const size_t TIMEOUT = 15*60; //seconds after which the session considered completed

typedef cc::SplitListMap<
    cds::gc::DHP,
    string,
    long,
    cc::split_list::make_traits<      // metafunction to build split-list traits
        cc::split_list::ordered_list<cc::michael_list_tag>,     // tag for underlying ordered list implementation
        cc::opt::hash< std::hash<string> >,        // hash functor
        cc::split_list::ordered_list_traits<    // ordered list traits desired
            cc::michael_list::make_traits<   // metafunction to build lazy list traits
                cc::opt::less< std::less<string> >         // less-based compare functor
        >::type
    >
>::type>  string_int_map;
string_int_map sessions;

UPD: list of exported symbols from dylib:

nm -gU libcds.dylib
0000000000013ce0 S __ZN3cds2OS4OS_X8topology17s_nProcessorCountE
00000000000102c0 T __ZN3cds2OS4OS_X8topology4finiEv
0000000000010260 T __ZN3cds2OS4OS_X8topology4initEv
0000000000003690 T __ZN3cds2gc2hp16GarbageCollector12classic_scanEPNS1_7details9hp_recordE
00000000000040a0 T __ZN3cds2gc2hp16GarbageCollector12inplace_scanEPNS1_7details9hp_recordE
00000000000138a0 S __ZN3cds2gc2hp16GarbageCollector13m_pHZPManagerE
00000000000032b0 T __ZN3cds2gc2hp16GarbageCollector14free_hp_recordEPNS1_7details9hp_recordE
0000000000003120 T __ZN3cds2gc2hp16GarbageCollector15alloc_hp_recordEv
0000000000002d20 T __ZN3cds2gc2hp16GarbageCollector15detachAllThreadEv
0000000000002ca0 T __ZN3cds2gc2hp16GarbageCollector8DestructEb
0000000000003390 T __ZN3cds2gc2hp16GarbageCollector8HelpScanEPNS1_7details9hp_recordE
0000000000002bc0 T __ZN3cds2gc2hp16GarbageCollector9ConstructEmmmNS1_9scan_typeE
0000000000002c60 T __ZN3cds2gc2hp16GarbageCollectorC1EmmmNS1_9scan_typeE
0000000000002de0 T __ZN3cds2gc2hp16GarbageCollectorC2EmmmNS1_9scan_typeE
0000000000002dc0 T __ZN3cds2gc2hp16GarbageCollectorD1Ev
0000000000002f00 T __ZN3cds2gc2hp16GarbageCollectorD2Ev
00000000000138b8 S __ZN3cds2gc3dhp16GarbageCollector10m_pManagerE
000000000000ac00 T __ZN3cds2gc3dhp16GarbageCollector4scanEv
000000000000a9c0 T __ZN3cds2gc3dhp16GarbageCollector8DestructEv
000000000000a900 T __ZN3cds2gc3dhp16GarbageCollector9ConstructEmm
000000000000a990 T __ZN3cds2gc3dhp16GarbageCollectorC1Emm
000000000000aa30 T __ZN3cds2gc3dhp16GarbageCollectorC2Emm
000000000000aa10 T __ZN3cds2gc3dhp16GarbageCollectorD1Ev
000000000000ab70 T __ZN3cds2gc3dhp16GarbageCollectorD2Ev
0000000000005fc0 T __ZN3cds2gc7details11retired_ptr4lessERKS2_S4_
00000000000138c0 S __ZN3cds4urcu7details21gp_singleton_instanceINS0_19general_instant_tagEE6s_pRCUE
00000000000138c8 S __ZN3cds4urcu7details21gp_singleton_instanceINS0_20general_buffered_tagEE6s_pRCUE
00000000000138d0 S __ZN3cds4urcu7details21gp_singleton_instanceINS0_20general_threaded_tagEE6s_pRCUE
00000000000138d8 S __ZN3cds4urcu7details21sh_singleton_instanceINS0_19signal_buffered_tagEE6s_pRCUE
00000000000138e0 S __ZN3cds4urcu7details21sh_singleton_instanceINS0_19signal_threaded_tagEE6s_pRCUE
0000000000011b00 S __ZN3cds6memory7michael26default_sizeclass_selector12m_szClassMapE
0000000000011a00 S __ZN3cds6memory7michael26default_sizeclass_selector15m_szClassBoundsE
00000000000138f0 S __ZN3cds6memory7michael26default_sizeclass_selector9m_szClassE
000000000000f5a0 T __ZN3cds6memory7michael26default_sizeclass_selectorC1Ev
000000000000f4d0 T __ZN3cds6memory7michael26default_sizeclass_selectorC2Ev
000000000000a520 T __ZN3cds7details14fini_last_callEv
000000000000a4f0 T __ZN3cds7details15init_first_callEv
00000000000137e0 D __ZN3cds9threading10ThreadData12s_nProcCountE
00000000000138a8 S __ZN3cds9threading10ThreadData17s_nLastUsedProcNoE
00000000000137e8 S __ZN3cds9threading12gcc_internal12s_threadDataE
0000000000013800 S __ZN3cds9threading12gcc_internal13s_pThreadDataE
00000000000138b0 S __ZN3cds9threading7pthread7Manager6Holder5m_keyE
0000000000004480 T __ZNK3cds2gc2hp16GarbageCollector16getInternalStateERNS2_13InternalStateE

It is clearly seen that there are no dhp::GuardArray... symbols
P.S. Максим, как можно с тобой связаться в более интерактивном режиме?

from libcds.

kakysha avatar kakysha commented on August 24, 2024

Pffff, the problem just was that I simply include
#include <cds/gc/hp.h>
instead of
#include <cds/gc/dhp.h>

from libcds.

khizmax avatar khizmax commented on August 24, 2024

P.S. Максим, как можно с тобой связаться в более интерактивном режиме?
libcds dot dev at gmail dot com

from libcds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.