Ignore:
Timestamp:
06/23/14 23:35:44 (8 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
5876154
Parents:
ed81f74
Message:

Remove inlines for BSD support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/message_queue.c

    rfac8c46 r5ba34eb  
    1616 *                see: man 7 pipe notes on atomic operations
    1717 */
    18 inline void libtrace_message_queue_init(libtrace_message_queue_t *mq, size_t message_len)
     18void libtrace_message_queue_init(libtrace_message_queue_t *mq, size_t message_len)
    1919{
    2020        assert(message_len);
     
    4141 *         of messages.
    4242 */
    43 inline int libtrace_message_queue_put(libtrace_message_queue_t *mq, const void *message)
     43int libtrace_message_queue_put(libtrace_message_queue_t *mq, const void *message)
    4444{
    4545        int ret;
     
    6666 *         of messages.
    6767 */
    68 inline int libtrace_message_queue_get(libtrace_message_queue_t *mq, void *message)
     68int libtrace_message_queue_get(libtrace_message_queue_t *mq, void *message)
    6969{
    7070        int ret;
     
    9090 *         of messages.
    9191 */
    92 inline int libtrace_message_queue_try_get(libtrace_message_queue_t *mq, void *message)
     92int libtrace_message_queue_try_get(libtrace_message_queue_t *mq, void *message)
    9393{
    9494        int ret;
     
    113113 * May be negative if threads blocking and waiting for a message.
    114114 */
    115 inline int libtrace_message_queue_count(const libtrace_message_queue_t *mq)
     115int libtrace_message_queue_count(const libtrace_message_queue_t *mq)
    116116{
    117117        // This is only ok because we know int is atomic
     
    119119}
    120120
    121 inline void libtrace_message_queue_destroy(libtrace_message_queue_t *mq)
     121void libtrace_message_queue_destroy(libtrace_message_queue_t *mq)
    122122{
    123123        mq->message_count = 0;
     
    131131 * @return a file descriptor for the queue, can be used with select() poll() etc.
    132132 */
    133 inline int libtrace_message_queue_get_fd(libtrace_message_queue_t *mq)
     133int libtrace_message_queue_get_fd(libtrace_message_queue_t *mq)
    134134{
    135135        return mq->pipefd[0];
Note: See TracChangeset for help on using the changeset viewer.