Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c552ca42
authored
Feb 02, 2015
by
Christian Kern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug 382
parent
3c5892ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h
+4
-3
No files found.
containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h
View file @
c552ca42
...
@@ -34,8 +34,9 @@ template< typename ElementT >
...
@@ -34,8 +34,9 @@ template< typename ElementT >
FixedSizeList
<
ElementT
>::
FixedSizeList
(
size_t
max_size
)
:
FixedSizeList
<
ElementT
>::
FixedSizeList
(
size_t
max_size
)
:
max_size
(
max_size
),
max_size
(
max_size
),
size
(
0
)
{
size
(
0
)
{
elementsArray
=
elementsArray
=
static_cast
<
ElementT
*>
(
new
ElementT
[
max_size
];
embb
::
base
::
Allocation
::
Allocate
(
sizeof
(
ElementT
)
*
max_size
));
}
}
template
<
typename
ElementT
>
template
<
typename
ElementT
>
...
@@ -92,7 +93,7 @@ bool FixedSizeList<ElementT>::PushBack(ElementT const el) {
...
@@ -92,7 +93,7 @@ bool FixedSizeList<ElementT>::PushBack(ElementT const el) {
template
<
typename
ElementT
>
template
<
typename
ElementT
>
FixedSizeList
<
ElementT
>::~
FixedSizeList
()
{
FixedSizeList
<
ElementT
>::~
FixedSizeList
()
{
delete
[]
elementsArray
;
embb
::
base
::
Allocation
::
Free
(
elementsArray
)
;
}
}
template
<
typename
GuardType
>
template
<
typename
GuardType
>
...
...
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