Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
6395d689
Commit
6395d689
authored
Aug 21, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plc, nmps lock wasn't removed at runtime stop
parent
3988bfa5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
nmps/lib/nmps/src/nmps_plc.c
nmps/lib/nmps/src/nmps_plc.c
+3
-5
src/exp/rt/src/rt_plc_process.c
src/exp/rt/src/rt_plc_process.c
+8
-0
src/lib/rt/src/rt_nmps_lock.c
src/lib/rt/src/rt_nmps_lock.c
+1
-1
No files found.
nmps/lib/nmps/src/nmps_plc.c
View file @
6395d689
...
...
@@ -112,9 +112,8 @@ void NMpsCell_init( pwr_sClass_NMpsCell *object)
{
plc_t_DataInfo
*
data_index
;
int
i
;
pwr_tStatus
sts
;
nmps_create_lock
(
&
sts
);
//
nmps_create_lock( &sts);
if
(
!
(
object
->
Function
&
NMPS_CELLFUNC_BACKUP
))
NMpsCell_init_time
(
object
);
...
...
@@ -706,9 +705,8 @@ void NMpsStoreCell_init( pwr_sClass_NMpsStoreCell *object)
{
plc_t_DataInfo
*
data_index
;
int
i
;
pwr_tStatus
sts
;
nmps_create_lock
(
&
sts
);
//
nmps_create_lock( &sts);
if
(
!
(
object
->
Function
&
NMPS_CELLFUNC_BACKUP
))
NMpsCell_init_time
(
(
pwr_sClass_NMpsCell
*
)
object
);
...
...
@@ -1163,7 +1161,7 @@ void NMpsStoreCell_exec(
if
((
object
->
Function
&
NMPS_CELLFUNC_SINGELSELECT
)
||
(
object
->
Function
&
NMPS_CELLFUNC_ONESELECT
))
{
/* Unselect ever
one ex
ept last selected */
/* Unselect ever
yone exc
ept last selected */
if
(
object
->
DataSelected
>
1
)
{
data_index
=
(
plc_t_DataInfo
*
)
&
object
->
Data1P
;
...
...
src/exp/rt/src/rt_plc_process.c
View file @
6395d689
...
...
@@ -299,6 +299,13 @@ init_process ( char *name)
exit
(
sts
);
}
nmps_create_lock
(
&
sts
);
if
(
EVEN
(
sts
))
{
errh_Fatal
(
"nmps_create_lock, %m"
,
sts
);
errh_SetStatus
(
PWR__SRVTERM
);
exit
(
sts
);
}
if
(
strstr
(
name
,
"rt_plc_core"
)
!=
0
)
pp
->
is_core
=
1
;
...
...
@@ -582,6 +589,7 @@ clean_all (
if
(
EVEN
(
sts
))
errh_Error
(
"gdh_UnrefObjectInfoAll, %m"
,
sts
);
nmps_delete_lock
(
&
sts
);
}
/* Link to I/O base areas.
...
...
src/lib/rt/src/rt_nmps_lock.c
View file @
6395d689
...
...
@@ -43,7 +43,7 @@
#include "rt_sect.h"
#include "rt_nmps_lock.h"
sect_sHead
*
nmps_locksect
=
0
;
s
tatic
s
ect_sHead
*
nmps_locksect
=
0
;
void
nmps_create_lock
(
pwr_tStatus
*
sts
)
{
...
...
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