]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - man/curs_threads.3x
ncurses 6.4 - patch 20231125
[ncurses.git] / man / curs_threads.3x
index 7247a52721b6cc5f29826676cf5ae5179c2e9524..1648dee20b4756f5edf27c577ab71a0c29b63208 100644 (file)
 .\" authorization.                                                           *
 .\"***************************************************************************
 .\"
-.\" $Id: curs_threads.3x,v 1.46 2023/10/01 09:45:30 tom Exp $
-.TH curs_threads 3X 2023-10-01 "ncurses 6.4" "Library calls"
-.ie \n(.g .ds `` \(lq
-.el       .ds `` ``
-.ie \n(.g .ds '' \(rq
-.el       .ds '' ''
+.\" $Id: curs_threads.3x,v 1.49 2023/11/25 14:09:12 tom Exp $
+.TH curs_threads 3X 2023-11-25 "ncurses 6.4" "Library calls"
+.ie \n(.g \{\
+.ds `` \(lq
+.ds '' \(rq
+.\}
+.el \{\
+.ie t .ds `` ``
+.el   .ds `` ""
+.ie t .ds '' ''
+.el   .ds '' ""
+.\}
+.
 .de bP
 .ie n  .IP \(bu 4
 .el    .IP \(bu 2
 \fIcurses\fR support for multi-threaded applications
 .SH SYNOPSIS
 .nf
-\fB#include <curses.h>\fP
+\fB#include <curses.h>
 .PP
-\fI/* data types */\fP
-\fBtypedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *);\fP
-\fBtypedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *);\fP
+\fI/* data types */
+\fBtypedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *);
+\fBtypedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *);
 .PP
-\fBint get_escdelay(void);\fP
-\fBint set_escdelay(int \fIms\fB);\fR
-\fBint set_tabsize(int \fIcols\fB);\fR
+\fBint get_escdelay(void);
+\fBint set_escdelay(int \fIms\fP);
+\fBint set_tabsize(int \fIcols\fP);
 .PP
-\fBint use_screen(SCREEN *\fIscr\fB, NCURSES_SCREEN_CB \fIfunc\fB, void *\fIdata\fB);\fR
-\fBint use_window(WINDOW *\fIwin\fB, NCURSES_WINDOW_CB \fIfunc\fB, void *\fIdata\fB);\fR
+\fBint use_screen(SCREEN *\fIscr\fP, NCURSES_SCREEN_CB \fIfunc\fP, void *\fIdata\fP);
+\fBint use_window(WINDOW *\fIwin\fP, NCURSES_WINDOW_CB \fIfunc\fP, void *\fIdata\fP);
 .fi
 .SH DESCRIPTION
 The \fIncurses\fP library can be configured to support multi-threaded
@@ -74,7 +81,7 @@ since doing so alters \fIncurses\fP's application binary interface
 Instead of modifying the programming interface (API) to make
 \fIncurses\fP functions expect an additional argument specifying a
 thread,
-the library adds a few functions,
+the library adds functions,
 usable in any configuration,
 that hide the \fImutexes\fP
 (mutual exclusion locks)