Signal Adaptation Complete

Published May 08, 2007
Advertisement
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.
Previous Entry Testing times
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement