void main() { pthread_t t; pendingIo = 1; stoppingFlag = 0; stoppingEvent = 0; stopped = 0; pthread_create(&t, 0, BCSP_PnpStop, 0); BCSP_PnpAdd(0); }
void main() { pthread_t id; DEVICE_EXTENSION e; e.pendingIo = 1; e.stoppingFlag = FALSE; e.stoppingEvent = FALSE; stopped = FALSE; pthread_create(id, NULL, BCSP_PnpStop, &e); BCSP_PnpAdd(&e); }