man pthread_setfp_np () - allow use of floating-point operations in a thread.

NAME

pthread_setfp_np - allow use of floating-point operations in a thread.

SYNOPSIS

#include <rtl_sched.h> 
 
int pthread_setfp_np(pthread_t thread, int flag); 

DESCRIPTION

This function is a non-portable Realtime Linux extension. pthread_setfp_np allows or disallows the use of floating-point arithmetic operations in a realtime thread. flag is zero to disallow floating-point operations, or non-zero to allow them.

RETURN VALUE

pthread_setfp_np returns 0 on success and a non-zero error code on error.

NOTES

This function may not be used on threads assigned to a CPU other than the current. Use of pthread_attr_setfp_np is recommended.

ERRORS

EINVAL
pthread_setfp_np was called on a thread running on a different CPU.

NOTES

By default, floating point operations are disallowed in RT-threads.

AUTHOR

Michael Barabanov (baraban@fsmlabs.com (link to URL mailto:baraban@fsmlabs.com) )

SEE ALSO

UNIX spec pthread_create(3) (link to URL ../susv2/xsh/pthread_create.html)

©2001 FSMLabs Inc.

All rights reserved.