Ignore:
Timestamp:
03/31/14 00:17:45 (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:
fb1fd42
Parents:
29ba7c2
Message:

Move the data structures out of the way and into there own folder and tidy file naming.

File:
1 moved

Legend:

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

    r29bbef0 rd6a56b6  
    11#include <pthread.h>
    2 #include <assert.h>
    32#include <limits.h>
    43
     
    98typedef struct libtrace_thread_t libtrace_thread_t;
    109typedef struct libtrace_message_queue_t {
    11                 int pipefd[2];
    12                 volatile int message_count;
    13                 size_t message_len;
    14                 pthread_spinlock_t spin;
     10        int pipefd[2];
     11        volatile int message_count;
     12        size_t message_len;
     13        pthread_spinlock_t spin;
    1514} libtrace_message_queue_t;
    1615
     
    2928inline int libtrace_message_queue_get_fd(libtrace_message_queue_t *mq);
    3029
    31 enum libtrace_messages {
    32         MESSAGE_STARTED,
    33         MESSAGE_PAUSE,
    34         MESSAGE_STOP,
    35         MESSAGE_STOPPED,
    36         MESSAGE_FIRST_PACKET,
    37         MESSAGE_MAPPER_ENDED,
    38         MESSAGE_MAPPER_RESUMED,
    39         MESSAGE_MAPPER_PAUSED,
    40         MESSAGE_MAPPER_EOF,
    41         MESSAGE_POST_REDUCE,
    42         MESSAGE_POST_RANGE,
    43         MESSAGE_USER
    44 };
    4530#endif
Note: See TracChangeset for help on using the changeset viewer.