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
e91a3ea7
Commit
e91a3ea7
authored
Mar 27, 2020
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shutdown_group_count my_atomic to Atomic_counter
parent
ed8bf7c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/threadpool_generic.cc
sql/threadpool_generic.cc
+2
-2
No files found.
sql/threadpool_generic.cc
View file @
e91a3ea7
...
@@ -200,7 +200,7 @@ struct MY_ALIGNED(CPU_LEVEL1_DCACHE_LINESIZE) thread_group_t
...
@@ -200,7 +200,7 @@ struct MY_ALIGNED(CPU_LEVEL1_DCACHE_LINESIZE) thread_group_t
static
thread_group_t
*
all_groups
;
static
thread_group_t
*
all_groups
;
static
uint
group_count
;
static
uint
group_count
;
static
int32
shutdown_group_count
;
static
Atomic_counter
<
uint32_t
>
shutdown_group_count
;
/**
/**
Used for printing "pool blocked" message, see
Used for printing "pool blocked" message, see
...
@@ -1068,7 +1068,7 @@ void thread_group_destroy(thread_group_t *thread_group)
...
@@ -1068,7 +1068,7 @@ void thread_group_destroy(thread_group_t *thread_group)
}
}
#endif
#endif
if
(
my_atomic_add32
(
&
shutdown_group_count
,
-
1
)
==
1
)
if
(
!--
shutdown_group_count
)
my_free
(
all_groups
);
my_free
(
all_groups
);
}
}
...
...
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