~cyphermox/ubuntu/trusty/multipath-tools/usb+local

« back to all changes in this revision

Viewing changes to .pc/0013-multipath-clean-up-code-for-stopping-the-waiter-thre.patch/libmultipath/waiter.h

  • Committer: Package Import Robot
  • Author(s): Rafael David Tinoco
  • Date: 2014-08-07 16:15:25 UTC
  • Revision ID: package-import@ubuntu.com-20140807161525-whfb9ggygzcwuawa
Tags: 0.4.9-3ubuntu7.1
* Added 0011-libmultipath-update-waiter-handling.patch (LP: #1354114)
* Added 0012-Race-condition-when-calling-stop_waiter_thread.patch (LP: #1354114)
* Added 0013-multipath-clean-up-code-for-stopping-the-waiter-thre.patch (LP: #1354114)
* Added 0014-Fix-race-condition-in-stop_waiter_thread.patch (LP: #1354114)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _WAITER_H
 
2
#define _WAITER_H
 
3
 
 
4
extern pthread_attr_t waiter_attr;
 
5
 
 
6
struct event_thread {
 
7
        pthread_t thread;
 
8
        pthread_mutex_t lock;
 
9
        int event_nr;
 
10
        char mapname[WWID_SIZE];
 
11
        struct vectors *vecs;
 
12
};
 
13
 
 
14
struct event_thread * alloc_waiter (void);
 
15
void signal_waiter (void *data);
 
16
void stop_waiter_thread (struct multipath *mpp, struct vectors *vecs);
 
17
int start_waiter_thread (struct multipath *mpp, struct vectors *vecs);
 
18
int waiteventloop (struct event_thread *waiter);
 
19
void *waitevent (void *et);
 
20
 
 
21
#endif /* _WAITER_H */