Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sequencing_Modules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
dnarXiv
Sequencing_Modules
Commits
18410788
Commit
18410788
authored
8 months ago
by
BOULLE Olivier
Browse files
Options
Downloads
Patches
Plain Diff
revert mutex test
parent
7bb150f3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
partitioning/fast_clustering_t.cpp
+1
-3
1 addition, 3 deletions
partitioning/fast_clustering_t.cpp
with
1 addition
and
3 deletions
partitioning/fast_clustering_t.cpp
+
1
−
3
View file @
18410788
...
...
@@ -127,8 +127,7 @@ void process_file_part(const std::string& input_filename, int part_id, int start
}
// lock the mutex for this output file until the end of this loop iteration
//std::lock_guard<std::mutex> lock(output_mutexes[cluster_id]);
output_mutexes
[
cluster_id
].
lock
();
std
::
lock_guard
<
std
::
mutex
>
lock
(
output_mutexes
[
cluster_id
]);
// write the sequence and its id to a cluster file corresponding to the bases found after the primer
std
::
ofstream
output_file
(
output_dir
+
"/"
+
cluster_id
+
".fasta"
,
std
::
ios
::
app
);
// ios app is to append to the file
if
(
!
output_file
.
is_open
())
{
...
...
@@ -138,7 +137,6 @@ void process_file_part(const std::string& input_filename, int part_id, int start
}
output_file
<<
">"
<<
read_name
<<
"
\n
"
<<
sequence
<<
"
\n
"
;
// output format is fasta
output_file
.
close
();
output_mutexes
[
cluster_id
].
unlock
();
}
input_read_file
.
close
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment