source: src/libcfa/concurrency/preemption.h @ d8548e2

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since d8548e2 was d8548e2, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Fixed preemption and changed default_preemption to use cfa_time_t

  • Property mode set to 100644
File size: 861 bytes
Line 
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
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Fri Jul 21 22:34:25 2017
13// Update Count     : 1
14//
15
16#pragma once
17
18#include "alarm.h"
19#include "kernel_private.h"
20
21void kernel_start_preemption();
22void kernel_stop_preemption();
23void update_preemption( processor * this, __cfa_time_t duration );
24void tick_preemption();
25
26struct preemption_scope {
27        alarm_node_t alarm;
28        processor * proc;
29};
30
31void ?{}( preemption_scope & this, processor * proc );
32void ^?{}( preemption_scope & this );
33
34// Local Variables: //
35// mode: c //
36// tab-width: 4 //
37// End: //
Note: See TracBrowser for help on using the repository browser.