BazisLib feature request

Sysprogs forums Forums Other tools & products BazisLib feature request

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #121
    airmax
    Participant

    Is it possible to make Kernel Mode C++ Runtime as independent part of BazisLib? For now, i take commondef.h, init.(h|cpp), kmemory.h, memdbg.(h|cpp), stlsup.cpp and compile as library.
    Tested with C++/STLPort containers – looks good.

    P.S. BazisLib/STLPort related question. To synchronize assess to STL containers i need use kernel SpinLock’s or STLPort already handle this?

    #1210
    support
    Keymaster

    You can see the function that calls CreateMainDriverInstance() and redefine it. The linker will ensure that the unused parts of BazisLib won’t get linked in.
    STLPort containers are not thread-safe. Moreover, spin locks won’t do, as, by default, they use paged memory (as far as I remember). You need to use either fast mutexes, or define and use an STL allocator using non-paged memory.

    #1211
    airmax
    Participant

    Ok, thanx. I will try this approach.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.