COLLECTABLE(3) 1 COLLECTABLE(3)The Collectable classINTRODUCTION
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 classINTRODUCTION
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)
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)
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)
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)
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)