Jump to content
  • Advertisement
  • entries
  • comments
  • views

Signal Adaptation Complete

Sign in to follow this  
Trapper Zoid


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  


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
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!