Note: On these RecRawStatSync callbacks, our 'data' is protected under its lock by the caller, so no need to worry!
| 100 | // Note: On these RecRawStatSync callbacks, our 'data' is protected |
| 101 | // under its lock by the caller, so no need to worry! |
| 102 | int |
| 103 | RecRawStatSyncSum(const char *name, RecDataT data_type, RecData *data, RecRawStatBlock *rsb, int id) |
| 104 | { |
| 105 | RecRawStat total; |
| 106 | |
| 107 | Dbg(dbg_ctl_stats, "raw sync:sum for %s", name); |
| 108 | rsb->ops->raw_stat_sync_to_global(rsb, id); |
| 109 | total.sum = rsb->global[id]->sum; |
| 110 | total.count = rsb->global[id]->count; |
| 111 | RecDataSetFromInt64(data_type, data, total.sum); |
| 112 | |
| 113 | return REC_ERR_OKAY; |
| 114 | } |
| 115 | |
| 116 | int |
| 117 | RecRawStatSyncCount(const char *name, RecDataT data_type, RecData *data, RecRawStatBlock *rsb, int id) |
nothing calls this directly
no test coverage detected