package embox.kernel.thread

@DefaultImpl(thread_allocator_pool)
abstract module thread_allocator {

}

module thread_allocator_pool extends thread_allocator {
	option string log_level="LOG_ERR"
	option number thread_user_stack=0

	option number use_thread_section=0

	source "thread_allocator_pool.c"
}

module thread_allocator_heap extends thread_allocator {
	option string log_level="LOG_ERR"
	option number thread_user_stack=1

	option number use_thread_section=0

	option number thread_heap_size=0

	source "thread_allocator_pool.c"
	source "thread_allocator_heap.c"
	source "thread_heap.lds.S"

	depends embox.mem.page_api
}
