Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
160cd2b2
Commit
160cd2b2
authored
Apr 21, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make 'thread_id' parameter in os_thread_create() optional.
parent
589f96fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
include/os0thread.h
include/os0thread.h
+1
-1
log/log0recv.c
log/log0recv.c
+1
-2
os/os0thread.c
os/os0thread.c
+7
-3
No files found.
include/os0thread.h
View file @
160cd2b2
...
...
@@ -77,7 +77,7 @@ os_thread_create(
void
*
arg
,
/* in: argument to start
function */
os_thread_id_t
*
thread_id
);
/* out: id of the created
thread */
thread
, or NULL
*/
int
os_thread_join
(
/*===========*/
...
...
log/log0recv.c
View file @
160cd2b2
...
...
@@ -2940,7 +2940,6 @@ recv_recovery_from_checkpoint_finish(void)
/*======================================*/
{
int
i
;
os_thread_id_t
recovery_thread_id
;
/* Apply the hashed log records to the respective file pages */
...
...
@@ -2984,7 +2983,7 @@ recv_recovery_from_checkpoint_finish(void)
session */
os_thread_create
(
trx_rollback_or_clean_all_without_sess
,
(
void
*
)
&
i
,
&
recovery_thread_id
);
(
void
*
)
&
i
,
NULL
);
}
}
...
...
os/os0thread.c
View file @
160cd2b2
...
...
@@ -96,7 +96,7 @@ os_thread_create(
void
*
arg
,
/* in: argument to start
function */
os_thread_id_t
*
thread_id
)
/* out: id of the created
thread */
thread
, or NULL
*/
{
#ifdef __WIN__
os_thread_t
thread
;
...
...
@@ -122,7 +122,9 @@ os_thread_create(
ut_a
(
SetThreadPriority
(
thread
,
srv_query_thread_priority
));
}
*
thread_id
=
win_thread_id
;
if
(
thread_id
)
{
*
thread_id
=
win_thread_id
;
}
return
(
thread
);
#else
...
...
@@ -180,7 +182,9 @@ os_thread_create(
my_pthread_setprio
(
pthread
,
srv_query_thread_priority
);
}
*
thread_id
=
pthread
;
if
(
thread_id
)
{
*
thread_id
=
pthread
;
}
return
(
pthread
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment