Changeset faf38b2 in mainline for uspace/app/top/ps.c


Ignore:
Timestamp:
2010-04-09T09:41:39Z (14 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
638927a
Parents:
a325832
Message:

Removed thread selection from kernel.
Now all threads are copied to uspace and then selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/ps.c

    ra325832 rfaf38b2  
    8686        int thread_count = THREAD_COUNT;
    8787        thread_info_t *threads = malloc(thread_count * sizeof(thread_info_t));
    88         int result = get_task_threads(taskid, threads, sizeof(thread_info_t) * thread_count);
     88        int result = get_task_threads(threads, sizeof(thread_info_t) * thread_count);
    8989
    9090        while (result > thread_count) {
    9191                thread_count *= 2;
    9292                threads = realloc(threads, thread_count * sizeof(thread_info_t));
    93                 result = get_task_threads(taskid, threads, sizeof(thread_info_t) * thread_count);
     93                result = get_task_threads(threads, sizeof(thread_info_t) * thread_count);
    9494        }
    9595       
Note: See TracChangeset for help on using the changeset viewer.