Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > SSR_impls > SSR__MC_shared_impl
changeset 13:9508be8a8b35 Pin2Core
fixed bug in new procr creation & comment
| author | Me |
|---|---|
| date | Tue, 05 Oct 2010 09:55:49 -0700 |
| parents | 02c3f4e7a034 |
| children | |
| files | SSR_PluginFns.c SSR_Request_Handlers.c |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/SSR_PluginFns.c Sat Sep 11 08:08:49 2010 -0700 1.2 +++ b/SSR_PluginFns.c Tue Oct 05 09:55:49 2010 -0700 1.3 @@ -73,7 +73,7 @@ 1.4 else 1.5 semEnv->nextCoreToGetNewPr += 1; 1.6 #endif 1.7 - writePrivQ( newPr, semEnv->readyVPQs[requestingPr->coreAnimatedBy]); 1.8 + writePrivQ( newPr, semEnv->readyVPQs[newPr->coreAnimatedBy]); 1.9 1.10 //resume procr that asked for registration 1.11 writePrivQ( requestingPr,
2.1 --- a/SSR_Request_Handlers.c Sat Sep 11 08:08:49 2010 -0700 2.2 +++ b/SSR_Request_Handlers.c Tue Oct 05 09:55:49 2010 -0700 2.3 @@ -18,6 +18,11 @@ 2.4 //=========================================================================== 2.5 // Helpers 2.6 2.7 +/*This helper encodes behavior that either send or receive can be first, 2.8 + * and both have same key, and want to pair them up -- so, if something 2.9 + * already here, then return it, that's the pair -- if nothing here then 2.10 + * this is first, so insert it to wait for the other. 2.11 + */ 2.12 HashEntry * 2.13 giveEntryElseInsertReqst( char *key, SSRSemReq *semReq, 2.14 HashTable *commHashTbl )
