Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b4bd35

Browse files
committed
doc: bgw_main takes a Datum argument, not void *.
Per report from James Harper.
1 parent9a57858 commit9b4bd35

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
@@ -37,7 +37,7 @@
3737
from its <function>_PG_init()</>.
3838
The structure <structname>BackgroundWorker</structname> is defined thus:
3939
<programlisting>
40-
typedef void (*bgworker_main_type)(void *main_arg);
40+
typedef void (*bgworker_main_type)(Datummain_arg);
4141
typedef struct BackgroundWorker
4242
{
4343
char bgw_name[BGW_MAXLEN];
@@ -94,7 +94,7 @@ typedef struct BackgroundWorker
9494
<para>
9595
<structfield>bgw_main</structfield> is a pointer to the function to run when
9696
the process is started. This function must take a single argument of type
97-
<type>void *</> and return <type>void</>.
97+
<type>Datum</> and return <type>void</>.
9898
<structfield>bgw_main_arg</structfield> will be passed to it as its only
9999
argument. Note that the global variable <literal>MyBgworkerEntry</literal>
100100
points to a copy of the <structname>BackgroundWorker</structname> structure

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp