/* Prepare whatever needs to be prepared to be able to start threads  */
void posix_arch_init(void)
/* Prepare whatever needs to be prepared to be able to start threads  */
void posix_arch_init(void)
{
	thread_create_count = 0;
	currently_allowed_thread = -1;
	threads_table = calloc(PC_ALLOC_CHUNK_SIZE,
				sizeof(struct threads_table_el));
	if (threads_table == NULL) {
		posix_print_error_and_exit(NO_MEM_ERR);
	}
	threads_table_size = PC_ALLOC_CHUNK_SIZE;
	PC_SAFE_CALL(pthread_mutex_lock(&mtx_threads));
}