Changeset 201abde in mainline for uspace/tester/thread/thread1.c


Ignore:
Timestamp:
2007-04-07T20:06:52Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e58979
Parents:
6adbe3c2
Message:

make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/tester/thread/thread1.c

    r6adbe3c2 r201abde  
    4646        while (atomic_get(&finish)) {
    4747                if (!sh_quiet)
    48                         printf("%d ", thread_get_id());
     48                        printf("%llu ", thread_get_id());
    4949                usleep(100000);
    5050        }
     
    6161
    6262        for (i = 0; i < THREADS; i++) { 
    63                 int t;
    64                 if ((t = thread_create(threadtest, NULL, "threadtest")) < 0) {
     63                if (thread_create(threadtest, NULL, "threadtest", NULL) < 0) {
    6564                        if (!quiet)
    6665                                printf("Could not create thread %d\n", i);
Note: See TracChangeset for help on using the changeset viewer.