Skip to content

Commit 4333eee

Browse files
committed
doc: bgw_main takes a Datum argument, not void *.
Per report from James Harper.
1 parent 6bfa88a commit 4333eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/bgworker.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<para>
4848
The structure <structname>BackgroundWorker</structname> is defined thus:
4949
<programlisting>
50-
typedef void (*bgworker_main_type)(void *main_arg);
50+
typedef void (*bgworker_main_type)(Datum main_arg);
5151
typedef struct BackgroundWorker
5252
{
5353
char bgw_name[BGW_MAXLEN];
@@ -107,7 +107,7 @@ typedef struct BackgroundWorker
107107
<para>
108108
<structfield>bgw_main</structfield> is a pointer to the function to run when
109109
the process is started. This function must take a single argument of type
110-
<type>void *</> and return <type>void</>.
110+
<type>Datum</> and return <type>void</>.
111111
<structfield>bgw_main_arg</structfield> will be passed to it as its only
112112
argument. Note that the global variable <literal>MyBgworkerEntry</literal>
113113
points to a copy of the <structname>BackgroundWorker</structname> structure

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy