public void update_data(HandInf result) { Mutex = true; if (result != null) { data_right = result; } Mutex = false; }
public void update_data(HandInf result) { Mutex = true; //if (result != null) //{ // if (result.Type == HandType.Right) // { // data_right = result; // } // else // { // data_left = result; // } //} if (result != null) { data_right = result; } Mutex = false; }