[Geneticd-devel] Some fixings and adds.
Status: Alpha
Brought to you by:
jonnymind
|
From: Jonny M. <jon...@ni...> - 2002-03-15 23:27:27
|
I Finally added the TRAM command, that adds a random brust of newborn agents each N turns. I had grown sick and tired of having to put a \r\n after each print in Core Commands (and the like). So I decided to add it automatically. A method in GStream called addEol( bool ) controls if print and vprint have to put an extra end of line character(s). I also secured the locking of master engines: when there is interaction with a slave, only that slave is locked, but when the engine needs to talk to all it's slaves, or has to change it's internal data, now the master locks. I added a GeneticEngine::cleanup virtual method that is called when a free command is issued, just before deleting the engine. This lets the master to try to free safely all it's slaves before entering the destructor (and having the engine space locked). |