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

Commit4333eee

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

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)(Datummain_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)

[8]ページ先頭

©2009-2025 Movatter.jp