qpcpp/doxygen/snippets/qs_user.cpp

17 lines
336 B
C++
Raw Normal View History

2013-10-10 20:01:51 -04:00
#ifdef Q_SPY
enum {
PHILO_STAT = QP::QS_USER
};
2012-08-14 18:00:48 -04:00
. . .
2013-10-10 20:01:51 -04:00
#endif
2012-08-14 18:00:48 -04:00
2013-10-10 20:01:51 -04:00
void BSP_displayPhilStat(uint8_t n, char const *stat) {
2012-08-14 18:00:48 -04:00
. . .
2020-10-01 12:50:17 -04:00
// application-specific record
QS_BEGIN_ID(PHILO_STAT, AO_Philo[n]->m_prio)
QS_U8(1, n); // Philosopher number
QS_STR(stat); // Philosopher status
2013-10-10 20:01:51 -04:00
QS_END()
2012-08-14 18:00:48 -04:00
}