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
c95ab918
Commit
c95ab918
authored
Nov 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restart events handled, and improved error handling
parent
c9ba6c31
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
218 additions
and
48 deletions
+218
-48
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
+192
-41
src/exe/rt_sevhistmon/src/rt_sevhistmon.h
src/exe/rt_sevhistmon/src/rt_sevhistmon.h
+26
-7
No files found.
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
View file @
c95ab918
This diff is collapsed.
Click to expand it.
src/exe/rt_sevhistmon/src/rt_sevhistmon.h
View file @
c95ab918
/*
* Proview $Id: rt_sevhistmon.h,v 1.
4 2008-10-31 12:51:30
claes Exp $
* Proview $Id: rt_sevhistmon.h,v 1.
5 2008-11-24 15:21:33
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -44,24 +44,33 @@ class sev_sevhist {
class
sev_sevhistthread
{
public:
pwr_tOid
oid
;
pwr_tFloat32
scantime
;
char
nodename
[
80
];
pwr_tNid
nid
;
unsigned
int
size
;
sev_sevhistthread
()
:
configerror
(
0
)
{}
pwr_tOid
oid
;
pwr_tFloat32
scantime
;
char
nodename
[
80
];
pwr_tNid
nid
;
unsigned
int
size
;
pwr_sClass_SevHistThread
*
threadp
;
pwr_tRefId
refid
;
int
configerror
;
vector
<
sev_sevhist
>
sevhistlist
;
};
class
sev_node
{
public:
sev_node
()
:
is_server
(
0
),
connected
(
0
),
ctime
(
0
)
{}
pwr_tNid
nid
;
char
name
[
80
];
int
is_server
;
int
connected
;
double
ctime
;
};
class
rt_sevhistmon
{
public:
rt_sevhistmon
()
:
m_msg_id
(
0
),
m_next_rix
(
0
),
m_loopcnt
(
0
)
{}
rt_sevhistmon
()
:
m_msg_id
(
0
),
m_next_rix
(
0
),
m_loopcnt
(
0
),
m_allconnected
(
0
),
m_server_status
(
0
),
m_swap
(
0
)
{}
pwr_tStatus
m_sts
;
vector
<
sev_sevhistthread
>
m_hs
;
...
...
@@ -70,11 +79,21 @@ class rt_sevhistmon {
unsigned
int
m_next_rix
;
unsigned
int
m_loopcnt
;
float
m_scantime
;
pwr_sClass_SevHistMonitor
*
m_confp
;
pwr_tRefId
m_conf_refid
;
int
m_allconnected
;
pwr_tStatus
m_server_status
;
int
m_swap
;
int
init
();
int
init_objects
();
int
close
();
int
close_objects
();
int
mainloop
();
void
set_status
();
int
connect
();
int
retry_connect
();
bool
send_connect
(
pwr_tNid
nid
,
pwr_tStatus
*
sts
);
int
send_itemlist
(
pwr_tNid
nid
);
int
send_data
();
};
...
...
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