loader: Add lock around cJSON so big loader lock is not needed as much
authorJon Ashburn <jon@lunarg.com>
Tue, 22 Sep 2015 19:11:00 +0000 (13:11 -0600)
committerJon Ashburn <jon@lunarg.com>
Tue, 22 Sep 2015 21:18:52 +0000 (15:18 -0600)
commitd14dd23dc7f74db544ac70bc68d45a921ba23e37
treed3953e5cc305361369e2897451786721f59227c2
parentbe1f36119d86cbdd2483fcbe0b6368e15cfdc1d2
loader: Add lock around cJSON so big loader lock is not needed as much

cJSON not thread safe.  Add a lock around cJSON calls so instance
extension and layer queries don't need the big lock.  This allows layers
to do queries from CreateInstance.
loader/loader.c
loader/loader.h