Changeset 389dd77 for examples


Ignore:
Timestamp:
09/23/15 13:47:24 (5 years ago)
Author:
Shane Alcock <salcock@…>
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:
6fac5db
Parents:
ff12906
Message:

Added 'sender' thread to user message callback

Update parallel skeleton to match this API change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/skeleton/parallel.c

    rc42a2d6 r389dd77  
    200200
    201201static void custom_msg(libtrace_t *trace, libtrace_thread_t *t, void *global,
    202                 void *tls, int mesg, libtrace_generic_t data) {
     202                void *tls, int mesg, libtrace_generic_t data,
     203                libtrace_thread_t *sender) {
    203204
    204205        struct pstorage *ps = (struct pstorage *)tls;
     
    210211        assert(mesg >= MESSAGE_USER);
    211212        assert(sizeof(data) == 8);
     213
     214        assert(sender || sender == NULL);
    212215}
    213216
Note: See TracChangeset for help on using the changeset viewer.