~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/src/eventthread.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
/********************************** Voiplink thread *************************************/
36
36
EventThread::EventThread (VoIPLink *link)
37
 
        : Thread(), _linkthread (link)
 
37
    : Thread(), _linkthread (link)
38
38
{
39
39
    setCancel (cancelDeferred);
40
40
}
46
46
void EventThread::run (void)
47
47
{
48
48
    while (!testCancel()) {
49
 
        _linkthread->getEvent();
 
49
        if (_linkthread)
 
50
            _linkthread->getEvent();
50
51
    }
51
52
}
52
53
 
53
54
/********************************************************************************************/
54
55
 
55
56
AudioThread::AudioThread (AlsaLayer *alsa)
56
 
        : Thread(), _alsa (alsa)
 
57
    : Thread(), _alsa (alsa)
57
58
{
58
59
    setCancel (cancelDeferred);
59
60
}
65
66
{
66
67
    while (!testCancel()) {
67
68
        _alsa->audioCallback();
68
 
        Thread::sleep (3);
 
69
        Thread::sleep (20);
69
70
    }
70
71
}
71
72