START_THREAD@

Platform

x64, Win32

Purpose

To start a new thread.

Syntax

INTEGER(7) START_THREAD@(SUB, PARAM)
INTEGER(7) PARAM
INTERFACE
  SUBROUTINE SUB(ARG)
  INTEGER(7) ARG
  END SUBROUTINE
END INTERFACE

Description

START_THREAD@ starts SUB on a new thread and passes the argument PARAM to it as the value of ARG.

Notes

If PARAM is a variable that is used to return a value (INTENT(OUT)) then it must "exist" (remain in scope) whilst the thread is running.

PARAM and ARG are described here as having type INTEGER(7) but FTN95 will allow the argument to have any matching standard or user-defined type.

Return value

START_THREAD@ returns the Microsoft thread handle for the new thread.

See also

WAIT_FOR_THREAD@, LOCK@, UNLOCK@.

 

 

Basket
Empty
 
Copyright © 1999-2022 Silverfrost Limited