equal
deleted
inserted
replaced
68 uint cur_value = _tlh_time_max; |
68 uint cur_value = _tlh_time_max; |
69 if (new_value <= cur_value) { |
69 if (new_value <= cur_value) { |
70 // No need to update max value so we're done. |
70 // No need to update max value so we're done. |
71 break; |
71 break; |
72 } |
72 } |
73 if (Atomic::cmpxchg(new_value, &_tlh_time_max, cur_value) == cur_value) { |
73 if (Atomic::cmpxchg(&_tlh_time_max, cur_value, new_value) == cur_value) { |
74 // Updated max value so we're done. Otherwise try it all again. |
74 // Updated max value so we're done. Otherwise try it all again. |
75 break; |
75 break; |
76 } |
76 } |
77 } |
77 } |
78 } |
78 } |