| 153 | typedef butil::ResourceId<Id> IdResourceId; |
| 154 | |
| 155 | inline bthread_id_t make_id(uint32_t version, IdResourceId slot) { |
| 156 | const bthread_id_t tmp = |
| 157 | { (((uint64_t)slot.value) << 32) | (uint64_t)version }; |
| 158 | return tmp; |
| 159 | } |
| 160 | |
| 161 | inline IdResourceId get_slot(bthread_id_t id) { |
| 162 | const IdResourceId tmp = { (id.value >> 32) }; |
no outgoing calls
no test coverage detected