void MachineModel::waitFor_qNotFull() { // while waiting maintain the temperatures while(qFull()) { manage(true); } }
void qEnqueue(Queue* q, int elem) { if (!qFull(q)) { q->data[q->tail] = elem; q->tail = (q->tail + 1) % q->total; } }