Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
4c2988ad
Commit
4c2988ad
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
b4162ac3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Fltk/onelabWindow.cpp
+7
-15
7 additions, 15 deletions
Fltk/onelabWindow.cpp
with
7 additions
and
15 deletions
Fltk/onelabWindow.cpp
+
7
−
15
View file @
4c2988ad
...
...
@@ -44,27 +44,22 @@ class onelabGmshServer : public GmshServer{
private:
onelab
::
localNetworkClient
*
_client
;
public:
onelabGmshServer
(
onelab
::
localNetworkClient
*
client
)
:
GmshServer
(),
_client
(
client
)
{}
~
onelabGmshServer
()
{}
int
SystemCall
(
const
char
*
str
)
{
return
::
SystemCall
(
str
);
}
onelabGmshServer
(
onelab
::
localNetworkClient
*
client
)
:
GmshServer
(),
_client
(
client
)
{}
~
onelabGmshServer
(){}
int
SystemCall
(
const
char
*
str
){
return
::
SystemCall
(
str
);
}
int
NonBlockingWait
(
int
socket
,
double
waitint
,
double
timeout
)
{
double
start
=
GetTimeInSeconds
();
while
(
1
){
if
(
timeout
>
0
&&
GetTimeInSeconds
()
-
start
>
timeout
)
return
2
;
// timout
if
(
_client
->
getPid
()
<
0
||
(
_client
->
getCommandLine
().
empty
()
&&
!
CTX
::
instance
()
->
solver
.
listen
))
if
(
_client
->
getPid
()
<
0
||
(
_client
->
getCommandLine
().
empty
()
&&
!
CTX
::
instance
()
->
solver
.
listen
))
return
1
;
// process has been killed or we stopped listening
// check if there is data (call select with a zero timeout to
// return immediately, i.e., do polling)
int
ret
=
Select
(
0
,
0
,
socket
);
if
(
ret
==
0
){
// nothing available: wait at most waitint seconds, and in the
// meantime respond to FLTK events
...
...
@@ -309,8 +304,6 @@ bool onelab::localNetworkClient::run()
Msg
::
Warning
(
"Received unknown message type (%d)"
,
type
);
break
;
}
FlGui
::
instance
()
->
check
();
}
_gmshServer
=
0
;
...
...
@@ -522,8 +515,7 @@ static bool updateOnelabGraph(int num)
changed
=
true
;
}
if
(
changed
)
FlGui
::
instance
()
->
updateViews
();
if
(
changed
)
FlGui
::
instance
()
->
updateViews
();
return
changed
;
}
...
...
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