System.Threading.Barrier.GetCurrentTotal C# (CSharp) Method

GetCurrentTotal() private method

Extract the three variables current, total and sense from a given big variable
private GetCurrentTotal ( int currentTotal, int &current, int &total, bool &sense ) : void
currentTotal int The integer variable that contains the other three variables
current int The current cparticipant count
total int The total participants count
sense bool The sense flag
return void
        private void GetCurrentTotal(int currentTotal, out int current, out int total, out bool sense)
        {
            total = (int)(currentTotal & TOTAL_MASK);
            current = (int)((currentTotal & CURRENT_MASK) >> 16);
            sense = (currentTotal & SENSE_MASK) == 0 ? true : false;
        }