~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/src/eventthread.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
 
2
 *  Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
3
3
 *  Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
4
4
 *
5
5
 *  This program is free software; you can redistribute it and/or modify
32
32
#define EVENT_THREAD_H_
33
33
 
34
34
#include "noncopyable.h"
35
 
#include <pthread.h>
 
35
#include <thread>
36
36
 
37
37
class VoIPLink;
38
38
 
47
47
        ~EventThread();
48
48
        // spawns thread
49
49
        void start();
 
50
        void join();
50
51
 
51
52
    private:
52
53
        NON_COPYABLE(EventThread);
53
54
        // VoIPLink is the object being called by getEvents() method
54
55
        VoIPLink* link_;
55
 
        pthread_t thread_;
 
56
        std::thread thread_;
56
57
        void run();
57
 
        static void *runCallback(void *);
58
58
};
59
59
 
60
60
#endif // EVENT_THREAD_H__