Changes between Version 6 and Version 7 of kernel_switch


Ignore:
Timestamp:
Dec 9, 2016, 5:15:01 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_switch

    v6 v7  
    4545
    4646
     47 === void '''_ctx_block'''( unsigned int norun_cause ) ===
     48This function set one (or several) bit(s) in the CTX_NORUN bit-vector of the calling thread, and deschedule the calling thread.
     49 * '''norun_cause''' : all non-zero bits in this 32 bits word are set.
     50
     51 === void '''_ctx_unblock'''( unsigned int trdid, unsigned int norun_cause ) ===
     52This function reset one (or several) bit(s) in the CTX_NORUN bit-vector of the thread identified by the <trdid> argument. This function can be called by an ISR or another thread.
     53 * '''trdid''' : target thread identifier.
     54 * '''norun_cause''' : all non-zero bits in this 32 bits word are reset.
     55
    4756 === void '''_ctx_switch'''() ===
    4857This function performs a context switch between the running (calling) thread and  another runnable thread, using a round-robin sheduling policy between all threads allocated to a given processor (static allocation).