]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/doc/gfortran/compiler-characteristics/asynchronous-i-o.rst
sphinx: copy files from texi2rst-generated repository
[thirdparty/gcc.git] / gcc / fortran / doc / gfortran / compiler-characteristics / asynchronous-i-o.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. index:: input/output, asynchronous, asynchronous I/O
7
8 .. _asynchronous-i-o:
9
10 Asynchronous I/O
11 ****************
12
13 Asynchronous I/O is supported if the program is linked against the
14 POSIX thread library. If that is not the case, all I/O is performed
15 as synchronous. On systems which do not support pthread condition
16 variables, such as AIX, I/O is also performed as synchronous.
17
18 On some systems, such as Darwin or Solaris, the POSIX thread library
19 is always linked in, so asynchronous I/O is always performed. On other
20 sytems, such as Linux, it is necessary to specify :option:`-pthread`,
21 :option:`-lpthread` or :option:`-fopenmp` during the linking step.