extern int gasnetc_AMPoll(void) { int retval; GASNETI_CHECKATTACH(); #if GASNET_PSHM gasneti_AMPSHMPoll(0); #endif AMLOCK(); GASNETI_AM_SAFE_NORETURN(retval,AM_Poll(gasnetc_bundle)); AMUNLOCK(); if_pf (retval) GASNETI_RETURN_ERR(RESOURCE); else return GASNET_OK;
extern int gasnetc_AMPoll(void) { int retval; GASNETI_CHECKATTACH(); #if GASNET_PSHM /* If your conduit will support PSHM, let it make progress here. */ gasneti_AMPSHMPoll(0); #endif gasnetc_p4_poll(); return GASNET_OK; }
extern int gasnetc_AMPoll(void) { int retval; GASNETI_CHECKATTACH(); #if GASNET_PSHM /* If your conduit will support PSHM, let it make progress here. */ gasneti_AMPSHMPoll(0); #endif /* add code here to run your AM progress engine */ /* should be a generic polling */ gasnetc_ofi_poll(); return GASNET_OK; }
extern int gasnetc_AMPoll(GASNETI_THREAD_FARG_ALONE) { int retval; GASNETI_CHECKATTACH(); #if GASNET_PSHM gasneti_AMPSHMPoll(0 GASNETI_THREAD_PASS); #endif AMLOCK(); // In single-nbrhd case never need to poll the network for client AMs. // However, we'll still check for control traffic for orderly exit handling. if (gasneti_mysupernode.grp_count > 1) { GASNETI_AM_SAFE_NORETURN(retval,AM_Poll(gasnetc_bundle)); } else { // TODO-EX: a lock-free peek would allow elimination of a lock cycle GASNETI_AM_SAFE_NORETURN(retval,AMUDP_SPMDHandleControlTraffic(NULL)); } AMUNLOCK(); if_pf (retval) GASNETI_RETURN_ERR(RESOURCE); else return GASNET_OK;