Permalink
Browse files

use concurrent_unordered_map in pipeline version

  • Loading branch information...
1 parent f05a564 commit f1b442e21210fd6099646f0209a8634fcaee7eea @lomereiter committed Apr 15, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 README
  2. +1 −1 src/types2.cpp
View
1 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.
View
2 src/types2.cpp
@@ -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]);

0 comments on commit f1b442e

Please sign in to comment.