~alan-griffiths/mir/knee-jerk-mir_surface_state_automatic

« back to all changes in this revision

Viewing changes to 3rd_party/android-input/android/frameworks/native/libs/utils/Looper.cpp

  • Committer: Kevin DuBois
  • Date: 2012-11-13 01:36:29 UTC
  • mfrom: (245 trunk)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: kevin.dubois@canonical.com-20121113013629-q4496w4mp5e33auk
merge in base branch. move the demo clients to a new directory, examples/

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
 
157
157
int Looper::pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) {
158
158
    int result = 0;
 
159
    // <mir changes>
 
160
    // If there are no polls open i.e. no client the reader thread 
 
161
    // can get stuck in epoll_wait making it impossible to exit
 
162
    if (mResponses.size() == 0) return result;
 
163
    // </mir changes>
159
164
    for (;;) {
160
165
        while (mResponseIndex < mResponses.size()) {
161
166
            const Response& response = mResponses.itemAt(mResponseIndex++);