File: Config.h

package info (click to toggle)
storm-lang 0.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,028 kB
  • sloc: ansic: 261,471; cpp: 140,432; sh: 14,891; perl: 9,846; python: 2,525; lisp: 2,504; asm: 860; makefile: 678; pascal: 70; java: 52; xml: 37; awk: 12
file content (20 lines) | stat: -rw-r--r-- 711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

/**
 * Project-wide configuration of how Storm interacts with the underlying system.
 */


/**
 * Allow choosing the I/O implementation on Linux-based systems.
 *
 * Storm has two I/O implementations on POSIX systems: one that is based on only the POSIX standard,
 * and one specific to Linux, based on io_uring. The former is more portable, but has the limitation
 * that it treats access to the local file system as blocking. The io_uring one solves this problem
 * as it is fully asynchronous, but it is Linux specific.
 */
#if defined(LINUX) && !defined(LINUX_NO_IO_URING)
#define LINUX_IO_URING
// Depth of the io_uring queue to use for each OS thread.
#define LINUX_IO_URING_QUEUE 16
#endif