le_thread_linux.h

    1 //--------------------------------------------------------------------------------------------------
    2 /** @file thread_linux.h
    3  *
    4  * Linux-specific Legato Thread include file.
    5  *
    6  * The Thread module is part of the @ref c_threading implementation.
    7  *
    8  * Copyright (C) Sierra Wireless Inc.
    9  */
    10 //--------------------------------------------------------------------------------------------------
    11 
    12 #ifndef LEGATO_THREAD_LINUX_H_INCLUDE_GUARD
    13 #define LEGATO_THREAD_LINUX_H_INCLUDE_GUARD
    14 
    15 #include <linux/param.h>
    16 
    17 //--------------------------------------------------------------------------------------------------
    18 /**
    19  * Extra space to allocate with the stack area.
    20  */
    21 //--------------------------------------------------------------------------------------------------
    22 #define LE_THREAD_STACK_EXTRA_SIZE 0
    23 
    24 //--------------------------------------------------------------------------------------------------
    25 /**
    26  * Minimum static stack size. Smaller stacks will be clamped to this value.
    27  */
    28 //--------------------------------------------------------------------------------------------------
    29 #define LE_THREAD_STACK_MIN_SIZE PTHREAD_STACK_MIN
    30 
    31 //--------------------------------------------------------------------------------------------------
    32 /**
    33  * Required alignment for the stack, in bytes.
    34  */
    35 //--------------------------------------------------------------------------------------------------
    36 #define LE_THREAD_STACK_ALIGNMENT EXEC_PAGESIZE
    37 
    38 #endif /* end LEGATO_THREAD_LINUX_H_INCLUDE_GUARD */