Changeset dba056b in mainline for uspace/srv/sysman/sysman.c
- Timestamp:
- 2019-08-06T19:23:56Z (6 years ago)
- Children:
- c6d87c10
- Parents:
- 3f05ef7
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-06-20 01:04:31)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 19:23:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/sysman.c
r3f05ef7 rdba056b 196 196 /** Create and queue job for unit 197 197 * 198 * If unit already has the same job assigned callback is setto it.198 * If unit already has the same job assigned callback is moved to it. 199 199 * 200 200 * @param[in] callback (optional) callback must explicitly delete reference … … 213 213 if (callback != NULL) { 214 214 job_add_ref(job); 215 //TODO sysman_object_observer is not fibril-safe CANNOT BE CALLED HERE! 215 216 sysman_object_observer(job, callback, callback_arg); 216 217 } … … 328 329 } 329 330 331 size_t sysman_observers_count(void *object) 332 { 333 ht_link_t *ht_link = hash_table_find(&observed_objects, &object); 334 335 if (ht_link == NULL) { 336 return 0; 337 } 338 339 observed_object_t *observed_object = 340 hash_table_get_inst(ht_link, observed_object_t, ht_link); 341 342 return list_count(&observed_object->callbacks); 343 } 344 330 345 331 346 /* … … 355 370 goto fail; 356 371 } 372 357 373 /* We don't need job anymore */ 358 374 job_del_ref(&job);
Note:
See TracChangeset
for help on using the changeset viewer.