Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

invoke user defined join() #922

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

invoke user defined join() #922

wants to merge 2 commits into from

Conversation

sirsnyder
Copy link
Collaborator

@dktapps does that correspond to your issue #919?

@dktapps
Copy link
Contributor

dktapps commented Feb 1, 2019

It appears to, yes. Haven't looked at this in close detail yet though. 👍

src/object.c Outdated
}
}
} zend_catch {
pthreads_monitor_add(object->monitor, PTHREADS_MONITOR_ERROR);
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this case used for when the thread itself errored, as opposed to the parent thread crashing trying to stop it?

src/object.c Outdated

ZVAL_UNDEF(&zresult);

pthreads_monitor_add(object->monitor, PTHREADS_MONITOR_RUNNING);
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps not what you intended?

src/object.c Outdated
zval_ptr_dtor(&zresult);
}

pthreads_monitor_remove(object->monitor, PTHREADS_MONITOR_RUNNING);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary? I was under the impression that this would already have happened by this point.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sorry, had copied the whole stuff from another function to see if it's working. now it's clean.

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.

None yet

2 participants