Properly pair entity_pin/mutex_lock
Coverity has difficulty observering that dds_entity_pin / ddsrt_mutex_lock / dds_entity_unlock is correct. It is perhaps a bit confusing, so change it. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
06a0ba26c9
commit
bf25c6ec80
1 changed files with 2 additions and 1 deletions
|
@ -359,7 +359,8 @@ dds_entity_t dds_create_topic_impl (dds_entity_t participant, struct ddsi_sertop
|
|||
hdl = create_topic_pp_locked (pp, ktp, (sertopic_registered->ops == &ddsi_sertopic_ops_builtintopic), sertopic_registered, listener, sedp_plist);
|
||||
ddsi_sertopic_unref (*sertopic);
|
||||
*sertopic = sertopic_registered;
|
||||
dds_participant_unlock (pp);
|
||||
ddsrt_mutex_unlock (&pp->m_entity.m_mutex);
|
||||
dds_entity_unpin (&pp->m_entity);
|
||||
GVTRACE ("dds_create_topic_generic: new topic %"PRId32"\n", hdl);
|
||||
return hdl;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue