source: src/libcfa/concurrency/preemption.h@ 4fbdfae0

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 4fbdfae0 was 242a902, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

Convert more library files to use references

  • Property mode set to 100644
File size: 932 bytes
RevLine 
[c81ebf9]1// -*- Mode: CFA -*-
2//
3// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
4//
5// The contents of this file are covered under the licence agreement in the
6// file "LICENCE" distributed with Cforall.
7//
8// preemption.h --
9//
10// Author : Thierry Delisle
11// Created On : Mon Jun 5 14:20:42 2017
12// Last Modified By : Thierry Delisle
13// Last Modified On : --
14// Update Count : 0
15//
16
17#ifndef PREEMPTION_H
18#define PREEMPTION_H
19
20#include "alarm.h"
21#include "kernel_private.h"
22
23__attribute__((weak)) unsigned int default_preemption();
24void kernel_start_preemption();
25void kernel_stop_preemption();
26void update_preemption( processor * this, __cfa_time_t duration );
27void tick_preemption();
28
29struct preemption_scope {
30 alarm_node_t alarm;
31 processor * proc;
32};
33
[242a902]34void ?{}( preemption_scope & this, processor * proc );
35void ^?{}( preemption_scope & this );
[c81ebf9]36
37#endif //PREEMPTION_H
Note: See TracBrowser for help on using the repository browser.