Pthreads Issue

Hey friends,

I am trying to use pthreads (github.com/krakjoe/pthreads) in my project and I am facing some problems with controllers->redirect method.

When I submit my asynchronous task it works as expected even if I render a view and continue navigating normally.

The problem is that if I call a redirect method after creating a Pool and submitting my task, it sometimes becomes synchronous and sometimes it just doesn’t execute.

Does anyone have any clue of what redirect does to impact in my tasks ?

Thanks in advance

Whoa, last time I checked that extension, it explicitly mentioned being everything but safe to use in a webserver environment :o The preferred method to do parallel stuff now is through generators. As for your problem: You’ve got the thread-safe version of PHP loaded, right? I also suspect the redirect being thrown out before all tasks have finished.