counters: minor cleanups

pull/1508/head
Victor Julien 11 years ago
parent 0e955ccf3a
commit 9f584483be

@ -1219,14 +1219,13 @@ SCPerfCounterArray *SCPerfGetAllCountersArray(SCPerfContext *pctx)
* *
* \param pca Pointer to the SCPerfCounterArray * \param pca Pointer to the SCPerfCounterArray
* \param pctx Pointer the the tv's SCPerfContext * \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 0 on success
* \retval -1 on error * \retval -1 on error
*/ */
int SCPerfUpdateCounterArray(SCPerfCounterArray *pca, SCPerfContext *pctx) int SCPerfUpdateCounterArray(SCPerfCounterArray *pca, SCPerfContext *pctx)
{ {
SCPerfCounter *pc = NULL; SCPerfCounter *pc = NULL;
SCPCAElem *pcae = NULL; SCPCAElem *pcae = NULL;
uint32_t i = 0; uint32_t i = 0;

@ -101,8 +101,12 @@ typedef struct ThreadVars_ {
uint16_t rank; uint16_t rank;
int thread_priority; /** priority (real time) for this thread. Look at threads.h */ 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; SCPerfContext sc_perf_pctx;
/** private counter store: counter updates modify this */
SCPerfCounterArray *sc_perf_pca; SCPerfCounterArray *sc_perf_pca;
SCCtrlMutex *ctrl_mutex; SCCtrlMutex *ctrl_mutex;

Loading…
Cancel
Save