Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seem's JSPatch can only support DISPATCH_QUEUE_SERIAL dispatch_queue #21

Closed
rqwj opened this issue Jun 4, 2015 · 1 comment
Closed

Comments

@rqwj
Copy link

rqwj commented Jun 4, 2015

Scene I
I tried to create a DISPATCH_QUEUE_CONCURRENT dispatch_queue, multi tasks in the dispatch_queue share one JSContext, then a got a exception with message "TypeError: undefined is not an object (evaluating 'self.__c')"

Scene II
I tried to create a DISPATCH_QUEUE_SERIAL dispatch_queue. when the background tasks were running, I click a button to call another patched method. The exception above occurred, too.

The test code is in my fork branch
https://github.com/Robert-Qiu/JSPatch/tree/multitherad_test

@bang590
Copy link
Owner

bang590 commented Jun 5, 2015

Fixed, thank you!

@bang590 bang590 closed this as completed Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants