Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

push_data_ready_event() deadlock (issue-22) #27

Merged
merged 13 commits into from
Jul 15, 2016
Merged

push_data_ready_event() deadlock (issue-22) #27

merged 13 commits into from
Jul 15, 2016

Conversation

jairomoldes
Copy link
Contributor

I hope this fixes issue-22

@jairomoldes jairomoldes changed the title Issue 22 push_data_ready_event() deadlock (issue-22) Jul 14, 2016
long ctr)
{
SAFE_PUSH(self, attr, name)
self.push_data_ready_event(__att_name, ctr); //__att_name from SAFE_PUSH
Copy link
Contributor

@vxgmichel vxgmichel Jul 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that push_archive_event calls attr.fire_archive_event(). Is there any reason why you're not using something similar, e.g. attr.fire_data_ready_event()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like Attribute cpp class only provides these methods:

  • Attribute::fire_archive_event
  • Attribute::fire_change_event
  • Attribute::fire_event
  • Attribute::fire_error_periodic_event

I can't see any "fire_data_ready_event" nor anything similar that could be used. Any suggestion?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I was just curious about it.

@vxgmichel
Copy link
Contributor

Has it been tested against the example scenario in issue #22?

@jairomoldes
Copy link
Contributor Author

Yes, I tested the solution using the sample code in #22
I left it running ~24 hours and got no error.

@vxgmichel
Copy link
Contributor

Great! Then it should be safe to merge.

@vxgmichel vxgmichel merged commit 6a2a2de into tango-controls:tango9 Jul 15, 2016
@vxgmichel
Copy link
Contributor

Thanks!

@jairomoldes jairomoldes deleted the issue-22 branch July 15, 2016 13:05
@tiagocoutinho tiagocoutinho added this to the 9.2.0 milestone Aug 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants