Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

collectable(3) [php man page]

COLLECTABLE(3)								 1							    COLLECTABLE(3)

The Collectable class

INTRODUCTION
Represents a garbage-collectable object. Collectable objects are intended to be used by the Pool class, replacing Threaded objects as the unit of work. They provide methods to set and detect the collectability of an object. CLASS SYNOPSIS
Collectable Collectableextends Threaded Methods o public bool Collectable::isGarbage (void ) o public void Collectable::setGarbage (void ) Inherited methods o public array Threaded::chunk (integer $size, boolean $preserve) o public integer Threaded::count (void ) o public bool Threaded::extend (string $class) o public Threaded Threaded::from (Closure $run, [Closure $construct], [array $args]) o public array Threaded::getTerminationInfo (void ) o public boolean Threaded::isRunning (void ) o public boolean Threaded::isTerminated (void ) o public boolean Threaded::isWaiting (void ) o public boolean Threaded::lock (void ) o public boolean Threaded::merge (mixed $from, [bool $overwrite]) o public boolean Threaded::notify (void ) o public boolean Threaded::pop (void ) o public void Threaded::run (void ) o public mixed Threaded::shift (void ) o public mixed Threaded::synchronized (Closure $block, [mixed $...]) o public boolean Threaded::unlock (void ) o public boolean Threaded::wait ([integer $timeout]) PHP Documentation Group COLLECTABLE(3)

Check Out this Related Man Page

WORKER(3)								 1								 WORKER(3)

The Worker class

INTRODUCTION
Worker Threads have a persistent context, as such should be used over Threads in most cases. When a Worker is started, the run method will be executed, but the Thread will not leave until one of the following conditions are met: othe Worker goes out of scope (no more references remain) othe programmer calls shutdown othe script dies This means the programmer can reuse the context throughout execution; placing objects on the stack of the Worker will cause the Worker to execute the stacked objects run method. Warning The programmer must retain references to stacked objects until they are executed or unstacked; the Pool class provides a higher level abstraction of the Worker functionality and manages references for the programmer. CLASS SYNOPSIS
Worker Workerextends ThreadTraversableCountableArrayAccess Methods o public integer Worker::getStacked (void ) o public boolean Worker::isShutdown (void ) o public boolean Worker::isWorking (void ) o public boolean Worker::shutdown (void ) o public integer Worker::stack (Threaded &$work) o public integer Worker::unstack ([Threaded &$work]) Inherited methods o public void Thread::detach (void ) o public integer Thread::getCreatorId (void ) o publicstatic Thread Thread::getCurrentThread (void ) o publicstatic integer Thread::getCurrentThreadId (void ) o public integer Thread::getThreadId (void ) o publicstatic mixed Thread::globally (void ) o public boolean Thread::isJoined (void ) o public boolean Thread::isStarted (void ) o public boolean Thread::join (void ) o public void Thread::kill (void ) o public boolean Thread::start ([integer $options]) PHP Documentation Group WORKER(3)
Man Page

6 More Discussions You Might Find Interesting

1. Programming

c++ templates problems in g++

what we have: class TClass { public: TClass(); }; template<class T> class FClass<T>: public T { public: FClass(); }; TClass::TClass() { // some code } template<class T> FClass<T>::FClass : T() { // some code } int main (int argc,char* argv) { (3 Replies)
Discussion started by: Marhinado John
3 Replies

2. UNIX for Dummies Questions & Answers

Threaded Discussions for Webpages

Dear All, I run a website for a non-profit. Does anyone know where I can get free or cheap software to run threaded discussions for our website? Our website is obviously running off a unix platform. Thanks (4 Replies)
Discussion started by: evertk
4 Replies

3. Programming

Threaded 'find' utility

I need to modify my version of find in unix and get it to create and use two POSIX threads to carry out concurrent finding operations. How do i get about doing this>? If anyone could help me it would be much appreciated. Thanx Mariuca (1 Reply)
Discussion started by: mariuca
1 Replies

4. Programming

why to use dynamic cast in c++

class base { public: virtual void disp() {cout<<"from base\n";} }; class derv : public base { public: void disp() {cout<<"from der\n";} }; int main() { base *b=new derv; b->disp(); derv *d; d=dynamic_cast<derv*>(b); d->disp(); return(0); (0 Replies)
Discussion started by: sarwan
0 Replies

5. Shell Programming and Scripting

search for any number, and retain them in replacement

Hello! Here is what I am trying to do: I am taking a class at school that is using a lot of literature that is in the public domain, and available for free on the web. Rather than read them online in HTML, I have been pulling them down and quickly and dirtily tagging them up and typesetting... (4 Replies)
Discussion started by: ccox85
4 Replies

6. Programming

Help with Java code

public class MyMail { public static void main(String args) { // TODO Auto-generated method stub System.out.println("number of args " + args.length); String from = ""; String to = ""; String subject = ""; String emailText = ""; for... (0 Replies)
Discussion started by: eel
0 Replies