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?
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.