3 ms·
Sure. You get the pointer, you lock the mutex, 99.99% of the time that is uncontended, then you set all the metrics and release it.
by jeffbee 11d ago
Sure. You get the pointer, you lock the mutex, 99.99% of the time that is uncontended, then you set all the metrics and release it.
- loeg 11d agoTaking the mutex uses (uncontended) atomic ops.