~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/api/iwaitqueue.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <api/controllers/icontroladorlog.h>
16
16
#include <wx/thread.h>
17
17
 
 
18
 
18
19
//----------------------------------------------------------------------------------------------------
19
20
//region Cola de espera
20
21
//----------------------------------------------------------------------------------------------------
67
68
 
68
69
bool GNC::GCS::WaitQueue::Wait()
69
70
{
70
 
        SUSPEND_WAKEUP();
71
71
        wxSemaError err = m_pSignaler->Wait();
72
72
        GNC::GCS::ILocker q_Locker(this);
73
73
        if (err != wxSEMA_NO_ERROR) {
74
 
                RESUME_WAKEUP();
75
74
                return false;
76
75
        }
77
76
        else {
78
77
                m_Size--;
79
78
        }
80
 
        RESUME_WAKEUP();
81
79
        return true;
82
80
}
83
81
 
84
82
bool GNC::GCS::WaitQueue::Wait(long msecs)
85
83
{
86
 
        SUSPEND_WAKEUP();
87
84
        wxSemaError err = m_pSignaler->WaitTimeout(msecs);
88
85
        GNC::GCS::ILocker q_Locker(this);
89
86
        if (err != wxSEMA_NO_ERROR) {
90
 
                RESUME_WAKEUP();
91
87
                return false;
92
88
        }
93
89
        else {
94
90
                m_Size--;
95
91
        }
96
 
        RESUME_WAKEUP();
97
92
        return true;
98
93
}
99
94