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
resolv-new
with_gc
Last change
on this file since 2e9aed4 was 9236060, checked in by Rob Schluntz <rschlunt@…>, 8 years ago |
Merge branch 'master' into references
|
-
Property mode
set to
100644
|
File size:
918 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 |
|
---|
21 | __attribute__((weak)) unsigned int default_preemption();
|
---|
22 | void kernel_start_preemption();
|
---|
23 | void kernel_stop_preemption();
|
---|
24 | void update_preemption( processor * this, __cfa_time_t duration );
|
---|
25 | void tick_preemption();
|
---|
26 |
|
---|
27 | struct preemption_scope {
|
---|
28 | alarm_node_t alarm;
|
---|
29 | processor * proc;
|
---|
30 | };
|
---|
31 |
|
---|
32 | void ?{}( preemption_scope & this, processor * proc );
|
---|
33 | void ^?{}( preemption_scope & this );
|
---|
34 |
|
---|
35 | // Local Variables: //
|
---|
36 | // mode: c //
|
---|
37 | // tab-width: 4 //
|
---|
38 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.