diff options
author | Ralf Kirchner <ralf.kirchner@embedded-brains.de> | 2014-06-02 14:46:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-02 16:26:25 +0200 |
commit | 1fc2e960cea37e8d78e142c71faec18262f356d2 (patch) | |
tree | 59f3b8951d4586ae96a9af9c578eb1f441945a06 /cpukit/libblock/include/rtems/bdbuf.h | |
parent | rtems: Avoid copy and paste in confdefs.h (diff) | |
download | rtems-1fc2e960cea37e8d78e142c71faec18262f356d2.tar.bz2 |
libblock: Add RTEMS_BDBUF_USE_PTHREAD
Use the PTHREAD mutexes and condition variables if available. This
helps on SMP configurations to avoid the home grown condition variables
via disabled preemption.
Diffstat (limited to 'cpukit/libblock/include/rtems/bdbuf.h')
-rw-r--r-- | cpukit/libblock/include/rtems/bdbuf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/libblock/include/rtems/bdbuf.h b/cpukit/libblock/include/rtems/bdbuf.h index 2794af7300..edec05e099 100644 --- a/cpukit/libblock/include/rtems/bdbuf.h +++ b/cpukit/libblock/include/rtems/bdbuf.h @@ -174,6 +174,15 @@ extern "C" { */ /**@{**/ +#if defined(RTEMS_POSIX_API) + /* + * Use the PTHREAD mutexes and condition variables if available. This helps + * on SMP configurations to avoid the home grown condition variables via + * disabled preemption. + */ + #define RTEMS_BDBUF_USE_PTHREAD +#endif + /** * @brief State of a buffer of the cache. * |