Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
62face74
Commit
62face74
authored
Sep 02, 2020
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch when another thread is still running
parent
3928be49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
src/Secondary.cpp
+13
-1
No files found.
src/Secondary.cpp
View file @
62face74
...
@@ -1211,6 +1211,8 @@ DSSPImpl::DSSPImpl(const Structure& s, int min_poly_proline_stretch_length)
...
@@ -1211,6 +1211,8 @@ DSSPImpl::DSSPImpl(const Structure& s, int min_poly_proline_stretch_length)
std
::
thread
ta
(
std
::
bind
(
&
CalculateAccessibilities
,
std
::
ref
(
mResidues
),
std
::
ref
(
mStats
)));
std
::
thread
ta
(
std
::
bind
(
&
CalculateAccessibilities
,
std
::
ref
(
mResidues
),
std
::
ref
(
mStats
)));
try
{
auto
&
db
=
s
.
getFile
().
data
();
auto
&
db
=
s
.
getFile
().
data
();
for
(
auto
r
:
db
[
"struct_conn"
].
find
(
cif
::
Key
(
"conn_type_id"
)
==
"disulf"
))
for
(
auto
r
:
db
[
"struct_conn"
].
find
(
cif
::
Key
(
"conn_type_id"
)
==
"disulf"
))
{
{
...
@@ -1279,7 +1281,11 @@ DSSPImpl::DSSPImpl(const Structure& s, int min_poly_proline_stretch_length)
...
@@ -1279,7 +1281,11 @@ DSSPImpl::DSSPImpl(const Structure& s, int min_poly_proline_stretch_length)
for
(
const
auto
&
[
a
,
b
]
:
mSSBonds
)
for
(
const
auto
&
[
a
,
b
]
:
mSSBonds
)
{
{
if
(
a
==
b
)
if
(
a
==
b
)
throw
std
::
runtime_error
(
"first and second residue are the same"
);
{
std
::
cerr
<<
"In the SS bonds list, the residue "
<<
a
->
mM
<<
" is bonded to itself"
<<
std
::
endl
;
continue
;
}
// throw std::runtime_error("first and second residue are the same");
if
(
a
->
mM
.
asymID
()
==
b
->
mM
.
asymID
()
and
NoChainBreak
(
a
,
b
))
if
(
a
->
mM
.
asymID
()
==
b
->
mM
.
asymID
()
and
NoChainBreak
(
a
,
b
))
++
mStats
.
nrOfIntraChainSSBridges
;
++
mStats
.
nrOfIntraChainSSBridges
;
...
@@ -1303,6 +1309,12 @@ DSSPImpl::DSSPImpl(const Structure& s, int min_poly_proline_stretch_length)
...
@@ -1303,6 +1309,12 @@ DSSPImpl::DSSPImpl(const Structure& s, int min_poly_proline_stretch_length)
}
}
}
}
}
}
}
catch
(
const
std
::
exception
&
ex
)
{
ta
.
join
();
throw
;
}
ta
.
join
();
ta
.
join
();
}
}
...
...
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