# HG changeset patch # User Me # Date 1286297749 25200 # Node ID 9508be8a8b35d65a25efe16c145aa01e29d095f8 # Parent 02c3f4e7a03471cc327abe420f19281bd8dafff7 fixed bug in new procr creation & comment diff -r 02c3f4e7a034 -r 9508be8a8b35 SSR_PluginFns.c --- a/SSR_PluginFns.c Sat Sep 11 08:08:49 2010 -0700 +++ b/SSR_PluginFns.c Tue Oct 05 09:55:49 2010 -0700 @@ -73,7 +73,7 @@ else semEnv->nextCoreToGetNewPr += 1; #endif - writePrivQ( newPr, semEnv->readyVPQs[requestingPr->coreAnimatedBy]); + writePrivQ( newPr, semEnv->readyVPQs[newPr->coreAnimatedBy]); //resume procr that asked for registration writePrivQ( requestingPr, diff -r 02c3f4e7a034 -r 9508be8a8b35 SSR_Request_Handlers.c --- a/SSR_Request_Handlers.c Sat Sep 11 08:08:49 2010 -0700 +++ b/SSR_Request_Handlers.c Tue Oct 05 09:55:49 2010 -0700 @@ -18,6 +18,11 @@ //=========================================================================== // Helpers +/*This helper encodes behavior that either send or receive can be first, + * and both have same key, and want to pair them up -- so, if something + * already here, then return it, that's the pair -- if nothing here then + * this is first, so insert it to wait for the other. + */ HashEntry * giveEntryElseInsertReqst( char *key, SSRSemReq *semReq, HashTable *commHashTbl )