SEQAN_ENABLE_PARALLELISM - SeqAn API Documentation

# #define SEQAN_ENABLE_PARALLELISM
Indicates whether parallelism is enabled with value 0/1.

Defined in | <seqan/basic.h>
Signature | `SEQAN_ENABLE_PARALLELISM`

## Detailed Description

By default, set to 1 if `_OPENMP` is defined and set to 0 otherwise.

### Examples

If you want to change tihs value then you have to define this value before include any SeqAn header.

    #define SEQAN_ENABLE_PARALLELISM 0  // ALWAYS switch off parallelism!

    #include <seqan/basic.h>

    int main(int argc, char ** argv)
    {
        return 0;
    }

## Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

#### Dox Sources

    /*!
     * @macro SEQAN_ENABLE_PARALLELISM
     *
     * @headerfile <seqan/basic.h>
     *
     * @brief Indicates whether parallelism is enabled with value 0/1.
     *
     * @signature SEQAN_ENABLE_PARALLELISM
     *
     * By default, set to 1 if <tt>_OPENMP</tt> is defined and set to 0 otherwise.
     *
     * @section Examples
     *
     * If you want to change tihs value then you have to define this value before
     * include any SeqAn header.
     *
     * @code{.cpp}
     * #define SEQAN_ENABLE_PARALLELISM 0  // ALWAYS switch off parallelism!
     *
     * #include <seqan/basic.h>
     *
     * int main(int argc, char ** argv)
     * {
     *     return 0;
     * }
     * @endcode
     */