Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool network_control(int netid){
- uint tick = 0;
- REQUEST_CONTROL_OF_NETWORK_ID(netid);
- do{
- tick++;
- REQUEST_CONTROL_OF_NETWORK_ID(netid);
- if(HAS_CONTROL_OF_NETWORK_ID(netid))
- return true;
- else
- WAIT(0);
- } while(tick < 300);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment