#endif
#ifdef AFS_NT40_ENV
-extern rx_atomic_t rxinit_status;
void
rxi_InitMorePackets(void) {
int npackets, ncbufs;
LOCK_IF_INIT;
if (Inited) {
- if (Inited < 2 && !rx_atomic_test_bit(&rxinit_status, 0)) {
+ if (Inited < 2 && rxi_IsRunning()) {
/* We couldn't initialize more packets earlier.
* Do it now. */
rxi_InitMorePackets();
UNLOCK_IF;
/*
- * If rxinit_status is still set, rx_InitHost() has yet to be called
+ * If rxi_IsRunning is false, rx_InitHost() has yet to be called
* and we therefore do not have any mutex locks initialized. As a
* result we cannot call rxi_MorePackets() without crashing.
*/
- if (rx_atomic_test_bit(&rxinit_status, 0))
+ if (!rxi_IsRunning())
return;
rxi_InitMorePackets();