equal
deleted
inserted
replaced
105 |
105 |
106 NOT_PRODUCT(int _sync_point_count;) |
106 NOT_PRODUCT(int _sync_point_count;) |
107 NOT_PRODUCT(int _merge_count;) |
107 NOT_PRODUCT(int _merge_count;) |
108 NOT_PRODUCT(int _last_gen_in_use;) |
108 NOT_PRODUCT(int _last_gen_in_use;) |
109 |
109 |
|
110 // how many generations are queued |
110 inline int generations_in_use() const { |
111 inline int generations_in_use() const { |
111 return (_tail >= _head ? (_tail - _head + 1) : (MAX_GENERATIONS - (_head - _tail) + 1)); |
112 return (_tail >= _head ? (_tail - _head + 1) : (MAX_GENERATIONS - (_head - _tail) + 1)); |
112 } |
113 } |
113 }; |
114 }; |
114 |
115 |