-
-
Notifications
You must be signed in to change notification settings - Fork 21
How to use the pool?
qxsch edited this page Jul 2, 2014
·
5 revisions
Please ensure, that:
- you do not have any open handles (DB connections, Files, ...) when:
- executing the create method
- you are not using objects in the child process, that are going to close shared resources (f.e. in the __destruct method)
- your child processes create their own handles (DB connections, Files, ...)
- you use the semaphore or other locking mechanisms, when accessing shared ressources
In case you need handles (f.e. DB connections), open them in the children in the onProcessCreate method and close them in the onProcessDestroy method