diff options
| -rw-r--r-- | man3/pthread_spin_init.3 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/man3/pthread_spin_init.3 b/man3/pthread_spin_init.3 index 379b5fb00f..773c6aa863 100644 --- a/man3/pthread_spin_init.3 +++ b/man3/pthread_spin_init.3 @@ -49,6 +49,13 @@ _POSIX_C_SOURCE >= 200112L .RE .ad .SH DESCRIPTION +.IR "General note" : +Most programs should use mutexes +instead of spin locks. +Spin locks are primarily useful in conjunction with real-time +scheduling policies. +See NOTES. +.PP The .BR pthread_spin_init () function allocates any resources required for the use of @@ -145,6 +152,8 @@ those threads will spin forever consuming CPU time. .SH SEE ALSO .ad l .nh +.BR pthread_mutex_init (3), +.BR pthread_mutex_lock (3), .BR pthread_spin_lock (3), .BR pthread_spin_unlock (3), .BR pthreads (7) |
