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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
13260841
Commit
13260841
authored
Mar 18, 2007
by
brian@piggy.tangent.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restoring attr (aka poking around Windows did not work).
parent
34b26587
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
client/mysqlslap.c
client/mysqlslap.c
+6
-1
No files found.
client/mysqlslap.c
View file @
13260841
...
...
@@ -1560,6 +1560,10 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
con
.
limit
=
limit
;
pthread_t
mainthread
;
/* Thread descriptor */
pthread_attr_t
attr
;
/* Thread attributes */
pthread_attr_init
(
&
attr
);
pthread_attr_setdetachstate
(
&
attr
,
PTHREAD_CREATE_DETACHED
);
pthread_mutex_lock
(
&
counter_mutex
);
thread_counter
=
0
;
...
...
@@ -1570,7 +1574,7 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
for
(
x
=
0
;
x
<
concur
;
x
++
)
{
/* nowucreate the thread */
if
(
pthread_create
(
&
mainthread
,
NULL
,
run_task
,
if
(
pthread_create
(
&
mainthread
,
&
attr
,
run_task
,
(
void
*
)
&
con
)
!=
0
)
{
fprintf
(
stderr
,
"%s: Could not create thread
\n
"
,
...
...
@@ -1580,6 +1584,7 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
thread_counter
++
;
}
pthread_mutex_unlock
(
&
counter_mutex
);
pthread_attr_destroy
(
&
attr
);
pthread_mutex_lock
(
&
sleeper_mutex
);
master_wakeup
=
0
;
...
...
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