ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        with_gc
      
      
        
          | 
            Last change
 on this file since 61fc4f6 was             2a84d06d, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago           | 
        
        
          | 
             
second draft of time package and incorporation into runtime kernel 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            857 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [c81ebf9] | 1 | //
 | 
|---|
 | 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
 | 
|---|
 | 3 | //
 | 
|---|
 | 4 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
 | 5 | // file "LICENCE" distributed with Cforall.
 | 
|---|
 | 6 | //
 | 
|---|
 | 7 | // preemption.h --
 | 
|---|
 | 8 | //
 | 
|---|
 | 9 | // Author           : Thierry Delisle
 | 
|---|
 | 10 | // Created On       : Mon Jun 5 14:20:42 2017
 | 
|---|
| [6b0b624] | 11 | // Last Modified By : Peter A. Buhr
 | 
|---|
| [2a84d06d] | 12 | // Last Modified On : Fri Mar 23 17:18:53 2018
 | 
|---|
 | 13 | // Update Count     : 2
 | 
|---|
| [c81ebf9] | 14 | //
 | 
|---|
 | 15 | 
 | 
|---|
| [6b0b624] | 16 | #pragma once
 | 
|---|
| [c81ebf9] | 17 | 
 | 
|---|
 | 18 | #include "alarm.h"
 | 
|---|
 | 19 | #include "kernel_private.h"
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 | void kernel_start_preemption();
 | 
|---|
 | 22 | void kernel_stop_preemption();
 | 
|---|
| [2a84d06d] | 23 | void update_preemption( processor * this, Duration duration );
 | 
|---|
| [c81ebf9] | 24 | void tick_preemption();
 | 
|---|
 | 25 | 
 | 
|---|
 | 26 | struct preemption_scope {
 | 
|---|
 | 27 |         alarm_node_t alarm;
 | 
|---|
 | 28 |         processor * proc;
 | 
|---|
 | 29 | };
 | 
|---|
 | 30 | 
 | 
|---|
| [242a902] | 31 | void ?{}( preemption_scope & this, processor * proc );
 | 
|---|
 | 32 | void ^?{}( preemption_scope & this );
 | 
|---|
| [c81ebf9] | 33 | 
 | 
|---|
| [6b0b624] | 34 | // Local Variables: //
 | 
|---|
 | 35 | // mode: c //
 | 
|---|
 | 36 | // tab-width: 4 //
 | 
|---|
 | 37 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.