thread.getcreatorid(3) php man page | unix.com

Man Page: thread.getcreatorid

Operating Environment: php

Section: 3

THREAD.GETCREATORID(3)							 1						    THREAD.GETCREATORID(3)

Thread::getCreatorId - Identification

SYNOPSIS
public integer Thread::getCreatorId (void )
DESCRIPTION
Will return the identity of the Thread that created the referenced Thread
PARAMETERS
This function has no parameters.
RETURN VALUES
A numeric identity
EXAMPLES
Example #1 Return the identity of the Thread or Process that created the referenced Thread <?php class My extends Thread { public function run() { printf("%s created by Thread #%lu ", __CLASS__, $this->getCreatorId()); } } $my = new My(); $my->start(); ?> The above example will output: My created by Thread #123456778899 PHP Documentation Group THREAD.GETCREATORID(3)
Related Man Pages
thread::queue(3pm) - redhat
thread::semaphore(3pm) - mojave
thread(3) - php
news::scan::thread(3pm) - debian
thread::semaphore(3pm) - redhat
Similar Topics in the Unix Linux Community
Rules for Homework &amp; Coursework Questions Forum
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team