~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Source/NSLock.m

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-11-21 13:56:22 UTC
  • mfrom: (8.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20121121135622-1w035dpxneardw8q
Tags: 1.24.0-1ubuntu1
Backport upstream fix for recent libxml2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#import "common.h"
26
26
#include <pthread.h>
27
27
#import "GNUstepBase/GSConfig.h"
 
28
#import "GSPrivate.h"
28
29
#define gs_cond_t       pthread_cond_t
29
30
#define gs_mutex_t      pthread_mutex_t
30
31
#include <math.h>
31
 
#include <errno.h>
32
32
 
33
33
#define EXPOSE_NSLock_IVARS     1
34
34
#define EXPOSE_NSRecursiveLock_IVARS    1
106
106
          return YES;\
107
107
        }\
108
108
      sched_yield();\
109
 
    } while([limit timeIntervalSinceNow] < 0);\
 
109
    } while ([limit timeIntervalSinceNow] > 0);\
110
110
  return NO;\
111
111
}
112
112
#define MTRYLOCK \
219
219
          _NSLockError(self, _cmd, NO);
220
220
        }
221
221
      sched_yield();
222
 
    } while([limit timeIntervalSinceNow] < 0);
 
222
    } while ([limit timeIntervalSinceNow] > 0);
223
223
  return NO;
224
224
}
225
225