1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9#ifndef _MAL_SCHEDULER
10#define _MAL_SCHEDULER
11#include "mal.h"
12#include "mal_instruction.h"
13#include "mal_client.h"
14
15#define DEBUG_MAL_SCHEDULER
16
17#ifdef HAVE_SYS_TIMES_H
18# include <sys/times.h>
19#endif
20
21#ifdef HAVE_SYS_RESOURCE_H
22#include <sys/resource.h>
23#endif
24
25struct {
26 /* rusage memused; */
27 int cpuload; /* hard to get */
28} runtime;
29
30mal_export str MALpipeline(Client c);
31
32#endif /* MAL_SCEDULER */
33