Second round of changes. Splitted thread.c into thread.c, team.c and scheduler.c. First kernel-only get_team_info and get_next_team_info implementation.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@569 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
lillo
2002-08-03 23:39:50 +00:00
parent ebbcbbca01
commit aded06e0aa
16 changed files with 1185 additions and 1001 deletions
+3 -3
View File
@@ -1633,7 +1633,7 @@ static int vm_thread_dump_max_commit(void *unused)
(void)(unused);
for(;;) {
thread_snooze(1000000);
snooze(1000000);
if(oldmax != max_commit)
dprintf("max_commit 0x%x\n", max_commit);
oldmax = max_commit;
@@ -1934,7 +1934,7 @@ static int vm_soft_fault(addr address, bool is_write, bool is_user)
// page must be busy
mutex_unlock(&cache_ref->lock);
thread_snooze(20000);
snooze(20000);
mutex_lock(&cache_ref->lock);
}
@@ -2040,7 +2040,7 @@ static int vm_soft_fault(addr address, bool is_write, bool is_user)
// it couldn't map the second one, so sleep and retry
// keeps an extremely rare deadlock from occuring
(*aspace->translation_map.ops->put_physical_page)((addr)src);
thread_snooze(5000);
snooze(5000);
}
memcpy(dest, src, PAGE_SIZE);
+1 -1
View File
@@ -135,7 +135,7 @@ static int page_daemon()
dprintf("page daemon starting\n");
for(;;) {
thread_snooze(PAGE_DAEMON_INTERVAL);
snooze(PAGE_DAEMON_INTERVAL);
// scan through all of the address spaces
vm_aspace_walk_start(&i);
+1 -1
View File
@@ -288,7 +288,7 @@ static int page_scrubber(void *unused)
dprintf("page_scrubber starting...\n");
for(;;) {
thread_snooze(100000); // 100ms
snooze(100000); // 100ms
if(page_free_queue.count > 0) {
state = disable_interrupts();