void BT<generic>::clear () { PostOrder k ; Btn<generic> * temp ; if (!empty ()) { for ( k = post_begin() ; k != post_end() ; ) { temp = k.current() ; k++ ; //cerr << *(temp->data) << endl ; delete temp->data ; delete temp->instance ; delete temp; } temp = k.current() ; //cerr << *(temp->data) << endl ; delete temp->data ; delete temp->instance ; delete temp; m_root = NULL; m_size = 0 ; } }
void *khrn_worker_post_begin(KHRN_WORKER_CALLBACK_T callback, uint32_t size) { return post_begin(callback, size); }
static void post_nop(uint32_t size) { post_begin(NULL, size - sizeof(MSG_HEADER_T)); post_end(); }