• entries
    383
  • comments
    1075
  • views
    352549

Signal Adaptation Complete

Sign in to follow this  
Trapper Zoid

65 views

My signal memory manager has now been adapted to use Boost.pool instead of my hacked up std::vector version. It involved a rewrite of most of the way the internal lists were handled, but it seems to be working again. I suspect there were a few undefined pointers in there that were causing the original problems.

I'm pretty happy with the unit testing framework too. I've got tests for all the basic things you can do with signals, and the stress test to check whether the whole system chokes if you keep connecting and disconnecting slots from a signal over and over again. If other bugs crop up I'll add more tests in, but I think it's solid enough for me to move on.

The only minor annoyance is that I haven't specifically written test cases for all the possible types of Signals I have, mostly because it's a royal pain to do so. The problem is that I need a different Signal class for each number of arguments in the functions used as the slots. The code is almost identical, but the minor edits you need to make are annoying to do. I'm almost certain that if it works for one it should work for them all, but if not I'll have to buckle down and write the full set of test cases for all of them.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now