enumClasses.hpp 1.1 KB
Newer Older
G
gineshidalgo99 已提交
1 2 3 4 5
#ifndef OPENPOSE__THREAD__ENUM_CLASSES_HPP
#define OPENPOSE__THREAD__ENUM_CLASSES_HPP

namespace op
{
G
gineshidalgo99 已提交
6 7 8 9
    /**
     * ThreadManager synchronization mode.
     */
    enum class ThreadManagerMode : unsigned char
G
gineshidalgo99 已提交
10
    {
G
gineshidalgo99 已提交
11 12 13 14 15
        /**
         * First and last queues of ThreadManager will be given to the user, so he must push elements to the first queue and retrieve
         * them from the last one after being processed.
         * Recommended for prototyping environments (easier to test but more error-prone and potentially slower in performance).
         */
G
gineshidalgo99 已提交
16
        Asynchronous,
G
gineshidalgo99 已提交
17 18 19 20 21 22
        AsynchronousIn,     /**< Similar to Asynchronous, but only the input (first) queue is given to the user. */
        AsynchronousOut,    /**< Similar to Asynchronous, but only the output (last) queue is given to the user. */
        /**
         * Everything will run inside the ThreadManager.
         * Recommended for production environments (more difficult to set up but faster in performance and less error-prone).
         */
G
gineshidalgo99 已提交
23 24 25 26 27
        Synchronous,
    };
}

#endif // OPENPOSE__THREAD__ENUM_CLASSES_HPP