---
name: "CL_Thread"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_Thread"
---

# CL\_Thread(3)

## NAME

CL\_Thread

## CLASS MEMBERS

- static CL\_Thread \***create**(

  ```
  CL_Runnable *runnable)
  ```

- static CL\_Thread \***create**(

  ```
  int (*func)(void*),
  void* value)
  ```

- virtual **~CL\_Thread**()

  - virtual void **start**()

  - virtual void **terminate**()

  - virtual void **wait**()

  ## MEMBERS WITH DESCRIPTIONS

- static CL\_Thread \***create**(

  ```
  CL_Runnable *runnable)
  ```

  ```
  Parameters:
  runnable - Class to call when thread is started.
  ```

  ```
  Description:
  ```

  Create a thread that uses the CL\_Runnable callback interface.

- static CL\_Thread \***create**(

  ```
  int (*func)(void*),
  void* value)
  ```

  ```
  Parameters:
  func - Function that gets called at thread start.
  value - Value passed to the function at thread start.
  ```

  ```
  Description:
  ```

  Create a thread that calls the function specified, with the value specified.

- virtual **~CL\_Thread**()

  ```
  Description:
  ```

- virtual void **start**()

  ```
  Description:
  ```

  Starts the thread.

- virtual void **terminate**()

  ```
  Description:
  ```

  Terminate the thread. (use with caution under win98)

- virtual void **wait**()

  ```
  Description:
  ```

  Wait until the thread finishes its execution.

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
