This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix race condition in serviceRegistry_getService.
Before serviceReference_setService is called for the first reference usage, there is a window in which the subsequent reference usages get NULL service. Moreover, serviceRegistration_retain and serviceRegistration_release are not called in pairs for invalid registration, which may cause assertion failure.
- Loading branch information
Showing 1 changed file with 9 additions and 7 deletions.