/** * @brief Signals all threads that are waiting on the condition variable. * * @param[in] cp pointer to the @p condition_variable_t structure * * @api */ void chCondBroadcast(condition_variable_t *cp) { chSysLock(); chCondBroadcastI(cp); chSchRescheduleS(); chSysUnlock(); }
/** * @brief Signals all threads that are waiting on the condition variable. * * @param[in] cp pointer to the @p CondVar structure * * @api */ void chCondBroadcast(CondVar *cp) { chSysLock(); chCondBroadcastI(cp); chSchRescheduleS(); chSysUnlock(); }
void CondVar::broadcastI(void) { chCondBroadcastI(&condvar); }