Browse Source

api.c trylock() add missing locklock

nfactor-troky
Kano 11 years ago committed by Noel Maersk
parent
commit
89000ffb1a
  1. 4
      api.c

4
api.c

@ -1393,10 +1393,14 @@ uint64_t api_trylock(void *lock, const char *file, const char *func, const int l @@ -1393,10 +1393,14 @@ uint64_t api_trylock(void *lock, const char *file, const char *func, const int l
LOCKINFO *info;
uint64_t id;
locklock();
info = findlock(lock, CGLOCK_UNKNOWN, file, func, linenum);
id = lock_id++;
addgettry(info, id, file, func, linenum, false);
lockunlock();
return id;
}

Loading…
Cancel
Save