Skip to content

Commit

Permalink
use concurrent_unordered_map in pipeline version
Browse files Browse the repository at this point in the history
  • Loading branch information
lomereiter committed Apr 15, 2012
1 parent f05a564 commit f1b442e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README
@@ -0,0 +1 @@
The examples show how to get distribution of feature types from GFF3 file with Intel Threading Building Blocks, using parallel_for or parallel_pipeline constructs and lambda functions from C++11.
2 changes: 1 addition & 1 deletion src/types2.cpp
Expand Up @@ -19,7 +19,7 @@ int main(int argc, const char** argv) {

ifstream fin("../data/Cucumber_v2i.gff3");

unordered_map<string, unsigned int> occurrences;
tbb::concurrent_unordered_map<string, unsigned int> occurrences;

const size_t CHUNK_SIZE = argc == 1 ? 100 : atoi(argv[1]);

Expand Down

0 comments on commit f1b442e

Please sign in to comment.