*
* \param pca Pointer to the SCPerfCounterArray
* \param pctx Pointer the the tv's SCPerfContext
- * \param reset_lc Indicates whether the local counter has to be reset or not
*
* \retval 0 on success
* \retval -1 on error
*/
int SCPerfUpdateCounterArray(SCPerfCounterArray *pca, SCPerfContext *pctx)
{
- SCPerfCounter *pc = NULL;
+ SCPerfCounter *pc = NULL;
SCPCAElem *pcae = NULL;
uint32_t i = 0;
uint16_t rank;
int thread_priority; /** priority (real time) for this thread. Look at threads.h */
- /* the perf counter context and the perf counter array */
+ /* counters */
+
+ /** public counter store: counter syncs update this */
SCPerfContext sc_perf_pctx;
+
+ /** private counter store: counter updates modify this */
SCPerfCounterArray *sc_perf_pca;
SCCtrlMutex *ctrl_mutex;