|
From: Bo L. <bl...@to...> - 2001-12-13 16:26:13
|
Hi ...
Now that it seems that nb++ will been changing home, I was looking
through the code, and was trying to find everyplace where you used the
Handle<> class, to se how difficult it would be to change it to the new
one I have made.
This helped me make the thread class more stable if all reference
classes have been destroyed (as the strart_thread class now also has a
reference to the ThredImpl). Also the STL "shadow" classes have been
removed, and some code have been changed to a more raw way of use. Like
this :
Vector<FancyClass> xyz;
to
std::vector<RefHandle<FancyClass> > xyz;
but "FancyClass" will now be defined like this :
class FancyClass : public RefCounted
...
But this lead me to a question ... why have you been using a ref counted
vector for strings ??? I mean strings are refcounted by itself anyway !
I Btw. really like your Thread class, as it does not matter how you
allocate the thread class, a really nice way of making threads (and the
combination of Lock and Monitor is neat too). We just need some kind of
manager that makes sure that the runnig class and the ThreadImpl keep
allocated (reffered) even if all the Thread classes have been destroyed.
Well this have been fixed :-)
Well, this was the changes for today, we are still missing a new "home"
for nb++, but the mashine will be up and running in the start of next
year, and we are working on it.
/BL
|