Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
d8f748e1
Commit
d8f748e1
authored
Dec 13, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(TCPCheck): исправил ошибку с SIGSEGV при завершении потока
parent
2a392918
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
libuniset2.spec
conf/libuniset2.spec
+1
-0
ThreadCreator.h
include/ThreadCreator.h
+7
-7
TCPCheck.cc
src/Communications/TCP/TCPCheck.cc
+2
-0
No files found.
conf/libuniset2.spec
View file @
d8f748e1
...
...
@@ -507,6 +507,7 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# history of current unpublished changes
# Modbus: refactoring code and test (for 64bit)
# iobase: refactoring tests for 64bit
# TCPCheck: fixed bug (for exit thread)
%changelog
* Mon Dec 12 2016 Pavel Vainerman <pv@altlinux.ru> 2.6-alt6
...
...
include/ThreadCreator.h
View file @
d8f748e1
...
...
@@ -156,13 +156,13 @@ namespace uniset
private
:
ThreadCreator
();
ThreadMaster
*
m
;
ThreadMaster
*
m
=
{
nullptr
}
;
Action
act
;
ThreadMaster
*
finm
;
ThreadMaster
*
finm
=
{
nullptr
}
;
Action
finact
;
ThreadMaster
*
initm
;
ThreadMaster
*
initm
=
{
nullptr
}
;
Action
initact
;
Poco
::
Thread
thr
;
...
...
@@ -173,10 +173,10 @@ namespace uniset
ThreadCreator
<
ThreadMaster
>::
ThreadCreator
(
ThreadMaster
*
m
,
Action
a
)
:
m
(
m
),
act
(
a
),
finm
(
0
),
finact
(
0
),
initm
(
0
),
initact
(
0
)
finm
(
nullptr
),
finact
(
nullptr
),
initm
(
nullptr
),
initact
(
nullptr
)
{
}
//----------------------------------------------------------------------------------------
...
...
src/Communications/TCP/TCPCheck.cc
View file @
d8f748e1
...
...
@@ -63,6 +63,8 @@ namespace uniset
{
if
(
t
.
isRunning
()
)
t
.
stop
();
t
.
join
();
}
protected
:
...
...
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