* Added a "flags" parameter to vm_create_anonymous_area() and

create_area_etc().
* When the new flag CREATE_AREA_DONT_WAIT is specified, the functions
  don't wait for memory or pages to become available. They fail
  immediately instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27117 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-08-21 22:50:11 +00:00
parent 2e8e6c9c6e
commit 1e90630527
6 changed files with 40 additions and 21 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ create_thread(thread_creation_attributes& attributes, bool kernel)
thread->user_stack_area = create_area_etc(team->id, stack_name,
(void **)&thread->user_stack_base, B_BASE_ADDRESS,
thread->user_stack_size + TLS_SIZE, B_NO_LOCK,
B_READ_AREA | B_WRITE_AREA | B_STACK_AREA);
B_READ_AREA | B_WRITE_AREA | B_STACK_AREA, 0);
if (thread->user_stack_area < B_OK
|| arch_thread_init_tls(thread) < B_OK) {
// great, we have a fully running thread without a (usable)