Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
e4de35fc
Commit
e4de35fc
authored
Dec 03, 2016
by
Etienne Renault
Browse files
bricks: adapt with the new bricks
* bricks/brick-hash, spot/ltsmin/ltsmin.cc, tests/core/bricks.cc: here.
parent
20448060
Changes
2
Hide whitespace changes
Inline
Side-by-side
bricks/brick-hash
View file @
e4de35fc
...
...
@@ -30,6 +30,7 @@
* POSSIBILITY OF SUCH DAMAGE. */
#include
"brick-assert"
#include
<spot/misc/common.hh>
#include
<cstddef>
#include
<utility>
// pair
...
...
tests/core/bricks.cc
View file @
e4de35fc
...
...
@@ -17,8 +17,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include
<bricks/brick-hashset
.h
>
#include
<bricks/brick-hash
.h
>
#include
<bricks/brick-hashset>
#include
<bricks/brick-hash>
struct
both
{
...
...
@@ -54,9 +54,6 @@ int main()
// Declare concurrent hash table
brick
::
hashset
::
FastConcurrent
<
both
,
mytest_hasher_both
<
both
>>
ht2
;
// Set initial size
ht2
.
setSize
(
1024
);
// Declare workers and provide them some jobs.
std
::
vector
<
std
::
thread
>
workers
;
for
(
int
i
=
0
;
i
<
6
;
i
++
)
...
...
@@ -75,6 +72,7 @@ int main()
for
(
unsigned
i
=
0
;
i
<
ht2
.
size
();
++
i
)
if
(
ht2
.
valid
(
i
))
std
::
cout
<<
i
<<
": {"
<<
ht2
[
i
].
x
<<
','
<<
ht2
[
i
].
y
<<
"}
\n
"
;
<<
ht2
.
valueAt
(
i
).
x
<<
','
<<
ht2
.
valueAt
(
i
).
y
<<
"}
\n
"
;
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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