Ignore:
Timestamp:
Nov 7, 2017, 3:08:12 PM (5 years ago)
Author:
alain
Message:

First implementation of fork/exec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_thread_exit.c

    r296 r407  
    3838    reg_t       irq_state;
    3939
    40     // register the exit_value in thread descriptor
     40    // register the exit_value pointer in thread descriptor
    4141    this->exit_value = exit_value;
    4242
    43     // we enter the join loop to wait the join
    44     // only if thread is joinable
     43    // enter the join loop to wait the join if thread is joinable
    4544    if( (this->flags & THREAD_FLAG_DETACHED) == 0 )
    4645    {
     
    7473
    7574                // deschedule
    76                 sched_yield( NULL );
     75                sched_yield();
    7776            }     
    7877        }
Note: See TracChangeset for help on using the changeset viewer.