---
name: "pthread_delete_np"
section: "3"
platform: "linux"
package: "rtlinux"
version: "2.0rel-1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/pthread_delete_np"
---

# pthread\_delete\_np(3)

delete a real-time thread

## NAME

pthread\_delete\_np - delete a real-time thread

## SYNOPSIS

**#include \<rtl\_sched.h\>**

**int pthread\_delete\_np (pthread\_t thread);**

## DESCRIPTION

This function is a non-portable Real-Time Linux extension. **pthread\_delete\_np** deletes the real-time thread  *thread* previously created by a call to **pthread\_create.** **pthread\_delete\_np** can be used to kill threads running on other than current CPU.

## RETURN VALUE

**pthread\_delete\_np returns 0 on success and a non-zero error code on error.**

## ERRORS

- **ESRCH**

  No thread could be found corresponding to that specified by the given thread ID.

## AUTHOR

Michael Barabanov \<baraban@fsmlabs.com\>

## SEE ALSO

[**pthread\_create**(3)](/pthread_create/3.md)
