solver.c
// not threadsafe. use with caution.
not threadsafe. use with caution.
not threadsafe . use with caution .
void pack_array(queue_head* qh, void* outbuff, int buff_size, int* pos, void* problem_data) {
	if (qh != NULL) {
		pack_solution(outbuff, buff_size, pos, qh->partial_solution, qh->priority, torus,
					  problem_data);
		pack_array(qh->left_subtree, outbuff, buff_size, pos, problem_data);
		pack_array(qh->right_subtree, outbuff, buff_size, pos, problem_data);
	}
}
void pack_array ( queue_head * qh , void * outbuff , int buff_size , int * pos , void * problem_data ) { if ( qh != NULL ) { pack_solution ( outbuff , buff_size , pos , qh -> partial_solution , qh -> priority , torus , problem_data ) ; pack_array ( qh -> left_subtree , outbuff , buff_size , pos , problem_data ) ; pack_array ( qh -> right_subtree , outbuff , buff_size , pos , problem_data ) ; } }
not threadsafe.
not threadsafe .