diff options
| author | Josh Blum <josh@joshknows.com> | 2011-06-14 09:21:06 -0700 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2011-06-14 09:21:06 -0700 | 
| commit | 9abe8aed3170390c8ab7b855d1d4d322129a7b34 (patch) | |
| tree | 84f123b07d2147895536ae789017c4621f0845e2 | |
| parent | 794a74cced070402f0e03d9978e8e735b3eb4324 (diff) | |
| download | uhd-9abe8aed3170390c8ab7b855d1d4d322129a7b34.tar.gz uhd-9abe8aed3170390c8ab7b855d1d4d322129a7b34.tar.bz2 uhd-9abe8aed3170390c8ab7b855d1d4d322129a7b34.zip | |
uhd: made all bounded_buffer methods forced inline
| -rw-r--r-- | host/include/uhd/transport/bounded_buffer.hpp | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/host/include/uhd/transport/bounded_buffer.hpp b/host/include/uhd/transport/bounded_buffer.hpp index 6aa92c2e6..620a708d0 100644 --- a/host/include/uhd/transport/bounded_buffer.hpp +++ b/host/include/uhd/transport/bounded_buffer.hpp @@ -48,7 +48,7 @@ namespace uhd{ namespace transport{           * \param elem the element reference pop to           * \return false when the buffer is full           */ -        bool push_with_haste(const elem_type &elem){ +        UHD_INLINE bool push_with_haste(const elem_type &elem){              return _detail.push_with_haste(elem);          } @@ -59,7 +59,7 @@ namespace uhd{ namespace transport{           * \param elem the new element to push           * \return true if the element fit without popping for space           */ -        bool push_with_pop_on_full(const elem_type &elem){ +        UHD_INLINE bool push_with_pop_on_full(const elem_type &elem){              return _detail.push_with_pop_on_full(elem);          } @@ -68,7 +68,7 @@ namespace uhd{ namespace transport{           * Wait until the bounded_buffer becomes non-full.           * \param elem the new element to push           */ -        void push_with_wait(const elem_type &elem){ +        UHD_INLINE void push_with_wait(const elem_type &elem){              return _detail.push_with_wait(elem);          } @@ -79,7 +79,7 @@ namespace uhd{ namespace transport{           * \param timeout the timeout in seconds           * \return false when the operation times out           */ -        bool push_with_timed_wait(const elem_type &elem, double timeout){ +        UHD_INLINE bool push_with_timed_wait(const elem_type &elem, double timeout){              return _detail.push_with_timed_wait(elem, timeout);          } @@ -89,7 +89,7 @@ namespace uhd{ namespace transport{           * \param elem the element reference pop to           * \return false when the buffer is empty           */ -        bool pop_with_haste(elem_type &elem){ +        UHD_INLINE bool pop_with_haste(elem_type &elem){              return _detail.pop_with_haste(elem);          } @@ -98,7 +98,7 @@ namespace uhd{ namespace transport{           * Wait until the bounded_buffer becomes non-empty.           * \param elem the element reference pop to           */ -        void pop_with_wait(elem_type &elem){ +        UHD_INLINE void pop_with_wait(elem_type &elem){              return _detail.pop_with_wait(elem);          } @@ -109,7 +109,7 @@ namespace uhd{ namespace transport{           * \param timeout the timeout in seconds           * \return false when the operation times out           */ -        bool pop_with_timed_wait(elem_type &elem, double timeout){ +        UHD_INLINE bool pop_with_timed_wait(elem_type &elem, double timeout){              return _detail.pop_with_timed_wait(elem, timeout);          } | 
