Synergy User Manual and Tutorial. - THE CORE MEMORY
Synergy User Manual and Tutorial. - THE CORE MEMORY
Synergy User Manual and Tutorial. - THE CORE MEMORY
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Synergy</strong> <strong>User</strong> <strong>Manual</strong> <strong>and</strong> <strong>Tutorial</strong><br />
// Put float frac in ts<br />
// Set length of send entry<br />
tplength = sizeof(float);<br />
// Set name of entry to frac<br />
strcpy(tpname, "D_frac");<br />
printf("Master: Putting '%f' Length %d Name %s\n",<br />
frac, tplength, tpname);<br />
// Put entry in tuple space<br />
status = cnf_tsput(tsd, tpname, fracPtr, tplength);<br />
printf("Master: Put '%f' complete\n", frac);<br />
// Put double dfrac in ts<br />
// Set length of send entry<br />
tplength = sizeof(double);<br />
// Set name of entry to dfrac<br />
strcpy(tpname, "D_dfrac");<br />
printf("Master: Putting '%g' Length %d Name %s\n",<br />
dfrac, tplength, tpname);<br />
// Put entry in tuple space<br />
status = cnf_tsput(tsd, tpname, (char *)dfracPtr, tplength);<br />
printf("Master: Put '%g' complete\n", dfrac);<br />
// Put int array numArr in ts<br />
// Set length of send entry<br />
tplength = sizeof(int)*MAX;<br />
// Set name of entry to numArr<br />
strcpy(tpname, "D_numArr");<br />
printf("Master: Putting\n ");<br />
for(i=0; i