Revision [17063]

This is an old revision of KeyPgThreadDetach made by DkLwikki on 2014-04-28 08:34:18.

 

THREADDETACH


Releases a thread handle without waiting for the thread to finish

Syntax:
Usage:
#include "fbthread.bi"
ThreadDetach( id )

Parameters:
Description:
ThreadDetach releases resources associated with a thread handle returned by KeyPgThreadCreate ThreadCreate or KeyPgThreadCall ThreadCall. Unlike KeyPgThreadWait ThreadWait, ThreadDetach does not wait for the thread to finish.

Examples:
#include "fbthread.bi"

Sub mythread( ByVal param As Any Ptr )
    Print "hi!"
End Sub

Var thread = ThreadCreate( @mythread )
threaddetach( thread )

threaddetach( ThreadCreate( @mythread ) )

Sleep


Dialect Differences:
Platform Differences:
Differences from QB:
See also:
Back to Threading Support Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode