Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
125
Issues
125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
8dff5008
Commit
8dff5008
authored
Apr 07, 2016
by
Johannes Kanig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
session scheduler now sets -j option for why3server
parent
5ccaf91f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
src/driver/prove_client.ml
src/driver/prove_client.ml
+7
-1
src/driver/prove_client.mli
src/driver/prove_client.mli
+1
-0
src/session/session_scheduler.ml
src/session/session_scheduler.ml
+2
-0
No files found.
src/driver/prove_client.ml
View file @
8dff5008
let
standalone
:
bool
ref
=
ref
true
let
socket
:
Unix
.
file_descr
option
ref
=
ref
None
let
max_running_provers
:
int
ref
=
ref
1
let
set_max_running_provers
x
=
max_running_provers
:=
x
let
client_connect
socket_name
=
if
Sys
.
os_type
=
"Win32"
then
begin
...
...
@@ -70,7 +74,9 @@ let disconnect () =
let
run_server
()
=
let
exec
=
Filename
.
concat
Config
.
libdir
"why3server"
in
Unix
.
create_process
exec
[
|
exec
;
"--socket"
;
!
socket_name
;
"--single-client"
|
]
[
|
exec
;
"--socket"
;
!
socket_name
;
"--single-client"
;
"-j"
;
string_of_int
!
max_running_provers
|
]
Unix
.
stdin
Unix
.
stdout
Unix
.
stderr
let
force_connect
()
=
...
...
src/driver/prove_client.mli
View file @
8dff5008
val
standalone
:
bool
ref
val
set_socket_name
:
string
->
unit
val
set_max_running_provers
:
int
->
unit
val
connect
:
unit
->
unit
...
...
src/session/session_scheduler.ml
View file @
8dff5008
...
...
@@ -111,11 +111,13 @@ type t =
}
let
set_maximum_running_proofs
max
sched
=
Prove_client
.
set_max_running_provers
max
;
(* TODO dequeue actions if maximum_running_proofs increase *)
sched
.
maximum_running_proofs
<-
max
let
init
max
=
Debug
.
dprintf
debug
"[Sched] init scheduler max=%i@."
max
;
Prove_client
.
set_max_running_provers
max
;
{
actions_queue
=
Queue
.
create
()
;
maximum_running_proofs
=
max
;
running_proofs
=
[]
;
...
...
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