ThreadJoin()

Makes the current thread wait until the thread or threads specified in the name attribute complete processing, or until the period specified in the timeout argument passes, before continuing processing.

If you don't specify a timeout and thread you are joining to doesn't finish, the current thread also cannot finish processing.

ThreadJoin( name=string, timeout=numeric );

Returns: void

Argument Description
name
string, optional

The name of the thread or threads to join to the current thread. To specify multiple threads, use a comma-delimited list.

timeout
numeric, optional

The number of milliseconds that the current thread waits for the thread or threads being joined to finish.

If any thread does not finish by the specified time, the current thread proceeds.

If the attribute value is 0, the default, the current thread continues waiting until all joining threads finish.

If the current thread is thepage thread, the page continues waiting until the threads are joined, even if you specify a page timeout. (optional, default=0)

Examples

There are currently no examples for this function 18,920ms WARN No examples for function threadjoin

See also