Vitor Santos Costa
51e669dcfb
support for passing priority as argument to write. (Ulrich's #45 ).
...
fixes on making write handle infinite loops
2009-05-22 13:24:27 -05:00
Vitor Santos Costa
e466bf2c5b
fix $notrace (Ulrich Neumerkel #26 )
2009-05-21 23:51:34 -05:00
Vitor Santos Costa
3736ba5793
$notrace should call $execute and disable interrupts below.
2009-05-21 22:35:24 -05:00
Vitor Santos Costa
a58e3d812d
fix interrupt enabling in call_setup and friends
...
remove between.
2009-05-21 00:41:35 -05:00
Vitor Santos Costa
46543ccb5c
remove redundant $between
2009-05-21 00:40:52 -05:00
Vitor Santos Costa
fe01f71f3e
between/3 is now part of arith.yap:
...
- handle inf
- handle errors
- make top case deterministic (Ulrich #66 )
2009-05-21 00:36:09 -05:00
Vitor Santos Costa
26a20fa74a
fix showing clean_call ( #65 Ulrich Neumerkel).
2009-05-20 09:12:01 -07:00
Vitor Santos Costa
26057240a8
fix call_cleanup/2 and /3 (broken in previous patch).
2009-05-20 07:29:13 -07:00
Vitor Santos Costa
c7066b43ec
first try of setup_call_cleanup/3 and setup_call_catcher_cleanup/4
2009-05-19 23:53:14 -07:00
Vitor Santos Costa
13b9098200
Ulrich: [PATCH-YAP] Permit | in DCGs.
2009-05-18 07:39:01 -07:00
Vitor Santos Costa
cfec78de06
fix copy_term and frozen (obs from Ulrich).
2009-05-18 07:07:42 -07:00
Vitor Santos Costa
55036ad9bb
check if argument to when is bound (obs from Ulrich Neumerkel).
2009-05-17 10:58:21 -07:00
Vitor Santos Costa
f4e3869025
include messages for out of stack and friends.
2009-05-17 10:40:14 -07:00
Vitor Santos Costa
1058a350c6
more cleanups: get rid of dead code.
2009-05-16 12:08:11 -07:00
Vitor Santos Costa
1fe1b19534
cleanup handling of attributed variables:
...
- try to make it clear when to call project
- try to make it clear when to generate goals for attributed variables (get_goalist_from_attvars).
- change call_residue to rely this infrastructure and then add extra variables.
- change frozen never to call project.
2009-05-16 12:00:56 -07:00
Vitor Santos Costa
8cfd6cf7fc
make length steadfast (from Ulrich Neumerkel).
2009-05-15 20:54:14 -05:00
Vitor Santos Costa
bdf8b890e3
copy_term/3
2009-05-13 17:11:21 -05:00
Vitor Santos Costa
04fa96e8a0
add call_residue_vars (SWI and SICStus 4 compatibility).
2009-05-13 16:43:24 -05:00
Vitor Santos Costa
e5a3150da0
** and exp should not be compiled as ^.
2009-05-09 23:40:37 -04:00
Vitor Santos Costa
f065e9359b
hProlog semantics requires checking *every* existing attributed variable (broken
...
in recent patch).
2009-05-08 00:01:09 -04:00
Vitor Santos Costa
d3632dd48c
fix case where you may bind variable (eg, freeze(X,Y)), obs from Ulrich Neumerkel.
2009-05-07 23:51:18 -04:00
Vitor Santos Costa
7d37428f36
fix reporting state of unknown flag (obs from Paulo Moura).
2009-05-06 09:33:13 -05:00
Vitor Santos Costa
6a6b18b045
send the abort message at the right place.
2009-05-04 22:31:03 -05:00
Vitor Santos Costa
e3293851a7
change variable names so that they are standard everywhere.
2009-05-04 18:11:11 -05:00
Vitor Santos Costa
42442bd360
make sure throw goes away on deterministic computations.
2009-05-04 18:10:07 -05:00
Vitor Santos Costa
d7559c3f96
put a reminder that in the future YAP will give an exception on unknown.
2009-05-04 18:08:12 -05:00
Vitor Santos Costa
848e1209a2
make sure call_cleanup makes exception handler fail.
2009-05-04 14:02:17 -05:00
Vitor Santos Costa
95ee0d9148
support calling attribute_goals.
2009-04-25 12:54:50 -05:00
Vitor Santos Costa
50fd7dca5a
support thread_initialization.
2009-04-25 12:54:21 -05:00
Vitor Santos Costa
c132e7e6ec
fix gmp support to give out of resource error if the bignum is too big.
2009-04-25 11:01:33 -05:00
Vitor Santos Costa
9ef589aef7
simplify output messages
2009-04-25 10:58:21 -05:00
Vitor Santos Costa
2503805aff
support 2^2 is 4 and not 4.0: complicated if we have to deal with bignums.
2009-04-24 19:03:00 -05:00
Vitor Santos Costa
e3aeb48af6
call_cleanup/3 should allow exceptions to go through, even if cleaner
...
itself calls an exception (obs from Ulrich Neumerkel).
2009-04-24 18:06:33 -05:00
Vitor Santos Costa
13f66957b6
break should restore system_mode.
2009-04-23 11:48:06 -05:00
Vitor Santos Costa
c1aba9a840
fix the signal handling a bit better.
2009-04-22 16:13:08 -05:00
Vitor Santos Costa
2f8c9c6b6c
block users from catching user balls.
2009-04-22 11:32:07 -05:00
Vitor Santos Costa
cf2b399e9a
debugger events should be known to the debugger!
2009-04-22 11:31:31 -05:00
Vitor Santos Costa
9d07b51937
make sure we don't redo things.
2009-04-21 15:19:26 -05:00
Vitor Santos Costa
af69088bc3
debug mode should be recovered at debug exit.
2009-04-21 15:01:18 -05:00
Vitor Santos Costa
374051733b
objects may be more than .so: they may be .dylib or .dll.
2009-04-17 16:19:21 -05:00
Vitor Santos Costa
f668676e72
make a better effort to avoid walking through system code.
2009-04-17 15:46:13 -05:00
Vitor Santos Costa
e42083a2bb
fix bad call.
2009-04-17 14:18:05 -05:00
Vitor Santos Costa
6da3d91f78
current_predicate: avoid debugger walking into clauses and make cp(X,M:a(_)) more efficient.
2009-04-16 19:06:49 -05:00
Vitor Santos Costa
9b088119c7
fix a case where one can creep inside the debugger.
2009-04-16 16:33:49 -05:00
Vitor Santos Costa
007a1346f4
fix unhandled exceptions.
2009-03-26 08:54:49 +00:00
Vitor Santos Costa
f46ff06f38
get rid of broken $clause/3: fixes listing of dynamic predicates.
2009-03-26 08:12:24 +00:00
Vitor Santos Costa
bdd625c8ae
arena is allocated by the system now.
2009-03-24 13:47:32 +00:00
Vitor Santos Costa
67b29f3c85
improve SWI compatibility.
2009-03-13 19:40:27 +00:00
Vitor Santos Costa
c9c097b32d
improve implementation of call_with_args/*
2009-03-13 11:11:04 +00:00
Vitor Santos Costa
503d97af90
make top-level error handling a bit more compatible with SWI.
2009-03-10 18:07:50 +00:00
Vitor Santos Costa
fc2e01f320
improve code for disjunctions by trying to avoid permanent variables.
2009-03-10 16:24:26 +00:00
Vitor Santos Costa
4af5713fd2
use current version of library
2009-03-09 00:44:30 +00:00
Vitor Santos Costa
2bc5d8425a
fix arithmetic dependence on Prolog table.
2009-02-25 00:12:36 +00:00
Vitor Santos Costa
94ebb90719
UDI patch: make it work with YAP.
2009-02-20 11:42:48 +00:00
Vitor Santos Costa
ad2d073184
allow better writing of inlined operations
...
disallow eval.yap
2009-02-16 21:04:30 +00:00
Vitor Santos Costa
a000af113b
OSX portability updates
...
start of support for commons prolog initiative
2009-02-16 12:25:03 +00:00
Vítor Santos Costa
d0de8a9f7d
include fixes from stable releasew
2009-02-16 09:55:31 +00:00
Vítor Santos Costa
78bd156a20
trivial interface to udi code (for now).
2009-02-12 21:40:44 +00:00
Vitor Santos Costa
a40dc14525
fix discontiguous warnings
2009-02-10 23:03:25 +00:00
Vitor Santos Costa
8a3978e3e1
rename BinaryTestPredFlag to BinaryPredFlag
...
get rid of small annoying arithmetic bugs
2009-02-09 21:56:40 +00:00
Vítor Santos Costa
73373e1ca5
global arena is now allocated in the C-code, when initing stacks.
2008-12-29 00:13:28 +00:00
Vítor Santos Costa
e0531d0743
fix bad access flags call.
2008-12-12 22:46:32 +00:00
Vítor Santos Costa
8c4c7b4ae5
fix unbound call to current_predicate/2
2008-12-12 22:45:41 +00:00
Vítor Santos Costa
a36be5bf20
massive changes to support new scheme for arithmetic:
...
- compilation and assembly support
2008-12-09 12:54:27 +00:00
Vítor Santos Costa
2e8d898e86
add new eval compiler
...
fix garbage collector for new big allocation scheme.
2008-12-05 16:08:44 +00:00
Vítor Santos Costa
8bcafd417a
include new arithmetic optimiser.
2008-12-04 23:37:25 +00:00
Vítor Santos Costa
e737599dc4
Change to simpler Eval mechanism
...
- avoid duplicate code
- implement different optimised code.
2008-12-04 23:33:32 +00:00
Vitor Santos Costa
f5e1b6d029
fix bug in create array: argument order was reversed.
2008-11-14 14:53:44 +00:00
Vitor Santos Costa
67d9e0ef26
fix compilation of (V;_) where V is unbound (obs from Ingo Molnar).
2008-10-29 18:16:11 +00:00
Vitor Santos Costa
017146ee54
fix compilation of C/3 (there was a bug with .)
2008-10-29 17:58:47 +00:00
Vítor Santos de Costa
1b399e3433
fix bad call to $execute in $spy
2008-10-24 14:26:44 +01:00
Vitor Santos Costa
0dcf34b7bc
mainbranch fixes to:
...
- fix quoted characters output
- fix line position in read_term and friends
- make messages look a bit better
- CLP(BN) EM improvements.
2008-10-23 22:17:45 +01:00
Vitor Santos Costa
7e4384cf5c
fix if/3 compilation (obs from Brian De Vries)
2008-10-18 12:50:02 +01:00
Vítor Santos de Costa
7207c18e65
fix longmp in trow not to recover trail. This way we do not need to do
...
copy_term/2 and we avoid losing the attributed variable stack.
2008-10-18 11:03:25 +01:00
Vítor Santos de Costa
9403ea8942
get rid of duplicate declarations.
2008-10-16 17:22:01 +01:00
Vítor Santos de Costa
45e8b6fc8f
when I call from $spy I am not under debugger control.
2008-10-13 15:40:05 +01:00
Vítor Santos de Costa
6692a5888c
make sure we force debug_jump false on creep.
2008-10-10 00:39:24 +01:00
Vítor Santos de Costa
8b171db743
fix notrace so that it will not call goal_expansion and friends.
2008-10-08 13:43:33 +01:00
Vitor Santos Costa
32a1396b79
declare hook predicates so that $notrace will not think they are undefined.
2008-09-30 11:44:48 +01:00
Vitor Santos Costa
ce8a8bc965
fix showprofres/1.
2008-09-26 00:58:57 +01:00
Vítor Santos Costa
139f591458
fix catch and throw: make sure we have an environment.
...
use $notrace consistently: note that it only matters if ran from the
debugger, otherwise it is just a meta-call.
2008-09-24 00:13:02 +01:00
Vítor Santos Costa
e252ef0b2f
more debugger fixes!
...
- make sure donotrace and oncenotrace are known to the signal mechanism:
they should disable creeping
- avoid creep at deallocate: it is a very bad idea :(
2008-09-23 23:43:01 +01:00
Vítor Santos Costa
ebbefd71ce
debugger fixes:
...
fix $execute0 and $call: they should be handled explicitely
fix missing ! for builtins in debugger meta-call
2008-09-23 22:50:25 +01:00
Vitor Santos Costa
895e29d444
FIX: '$execute0' should be invisible to creep processing
2008-09-22 18:07:50 +01:00
Vitor Santos Costa
7f51339a97
fix syntax error in current_predicate
2008-09-18 17:48:01 +01:00
Vitor Santos Costa
821cc384a3
allow statistics on data base keys of integers.
...
change pred_entry not to fail on this case.
avoid using functor in this case.
2008-09-15 04:30:09 +01:00
Vítor Santos Costa
65ccd336b2
fix a stupid threads bug
2008-09-04 16:58:45 +01:00
Vítor Santos Costa
6046f9f913
more fixes to debugger: make l and s option do what they are supposed to
...
do.
fix k and t, they had been broken.
Ideas:
DebugOn is now in the system and can disable spypoints.
Have an extra flag to distinguish fast (t,z,k) and slow(l,s) jumping.
2008-09-02 03:48:02 +01:00
Vítor Santos Costa
882178c02f
support paths like the term a/b.
2008-08-30 04:34:27 +01:00
Vítor Santos Costa
1226b58d8e
The debugger relied on the environment stack. To fix it:
...
- absmi.c now tells who called the debugger, besides who it was calling
- this is used to control whether we allow a goal to be debugged.
- I have creep to start creeping immediately, and signal_creep to tell
the next meta-call to creep what it executes!
- The debugger uses CalledFromTheDebugger to know if it is within the
debugger. If so, we do not need to creep on leaving.
2008-08-30 02:39:36 +01:00
Vitor Santos Costa
8169ef0343
fix stack_dump
2008-08-25 15:20:18 +01:00
Vitor Santos Costa
a6b9d096a6
make sure we always close intermediate memory streams on exit.
2008-08-25 15:19:00 +01:00
Vitor Santos Costa
7a94144ccb
support writeln/1 for SWI compatibility.
2008-08-24 16:09:33 +01:00
Vitor Santos Costa
46744810ae
support exporting DCG rules as // (swi compatibility).
2008-08-24 14:24:02 +01:00
vsc
d170b34624
MaxOS fixes
...
Avoid a thread deadlock
improvements to SWI predicates.
make variables_in_term system builtin.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2304 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-12 01:27:23 +00:00
pmoura
ad67cd43af
Added built-in predicate format/1 for compatibility with SWI-Prolog.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2303 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-10 15:44:12 +00:00
vsc
b3a0b412f1
fix threads/0.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2302 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-08 16:05:10 +00:00
vsc
5776abb31c
more thread fixes.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2301 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-08 14:05:34 +00:00
vsc
2581c3a3bf
more threadin fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2300 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-07 20:51:23 +00:00
vsc
6d23a23a81
fix debugging info
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2299 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 23:05:49 +00:00
vsc
85d7d39dbf
more thread fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2297 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 17:32:22 +00:00
vsc
ea812ad059
fix expand_term to list at end_of_file
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2296 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 10:15:48 +00:00
vsc
2c829f8e5c
fixes to module expansion
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2295 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 00:56:11 +00:00
vsc
75c72d7b7d
SWI and module fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2290 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-22 23:34:50 +00:00
vsc
dc53522604
small fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2289 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-16 10:58:59 +00:00
vsc
d8e5f2c895
fixes by Bart and Tom: mostly libraries but nasty one in indexing
...
compilation.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2286 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-11 17:02:10 +00:00
vsc
e90f744e5e
fix stack growth in globals
...
fix compilation messages
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2277 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-16 21:22:15 +00:00
vsc
ac6ddd5005
fix syntax error messages
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2275 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-12 10:55:52 +00:00
pmoura
f26c4592bb
Corrected a bug in setting a thread exit status in case the thread goal results in an exception; exit status should be exception(Exception) and not exception(error(Exception,_)).
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2270 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-08 16:55:23 +00:00
pmoura
502a5571a8
Corrected a bug in setting a thread exit status in case the thread goal results in an exception; exit status should be exception(Exception) and not exception(error(Exception,_)).
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2269 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-08 16:45:52 +00:00
vsc
02497c1172
fix manual and message handling
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2253 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-03 09:24:28 +00:00
vsc
8e6403794f
fix abolish bug
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2252 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-02 17:20:28 +00:00
vsc
abbf5430dc
keep current_stream across top-level.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2249 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-26 09:16:24 +00:00
vsc
0c006711ba
fix cygiwn version
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2248 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-23 22:29:52 +00:00
vsc
7c24afa0f2
handle SIGPIPE and improve USR1 and USR2
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2242 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-23 10:02:13 +00:00
vsc
73cf1fbafa
fix predicate_property/2
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2240 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-22 21:48:04 +00:00
vsc
511181b472
debugging fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2238 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-15 18:31:02 +00:00
vsc
316811d2cd
user:goal_expand should be called before import
...
add extra apply_macros and apply stuff; fix unexisting definitions.
add forall/2 and ignore/1 to system stuff.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2237 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-15 13:41:48 +00:00
vsc
257c3a2cbc
fix threads and LU
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2233 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-10 23:24:13 +00:00
vsc
f1d5e84918
fix bug in current_predicate/2
...
fix bug in c_interface.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2221 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-28 23:02:32 +00:00
vsc
3edc72b4c1
fixed a bug in static_clause (thanks to Jose Santos)
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2218 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-14 21:20:36 +00:00
vsc
3c3d0de2de
partial fix to predicate_property trouble (obs from Nicos).
...
fix core dump when writing arrays without bignum support.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2217 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-14 17:30:18 +00:00
vsc
516a349aad
only evaluate lists with a single character.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2214 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-08 15:36:53 +00:00
vsc
21f03da2cd
fixes for message queues
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2208 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-04 11:28:59 +00:00
vsc
4c933b8d79
implement thread_cancel using signals
...
use duplicate_term instead of copy_term in throw: throw may lose
reference to term.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2207 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-04 10:02:44 +00:00
vsc
f930fd3179
thread at_exit should be module aware.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2206 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-04 09:32:10 +00:00
pmoura
04682ef5f0
Fixed bug in the predicate thread_create/1 when the thread goal generates an exception.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2204 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-03 23:23:06 +00:00
pmoura
2462596050
Fixed missing argument in recorda/3 call.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2198 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-03 01:28:21 +00:00
pmoura
5d6ddc8026
Fixed two bugs when closing a thread: (1) register thread exit status before running the exit hooks; (2) incorrect register of exception exit status.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2197 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-03 01:22:47 +00:00
pmoura
f827e047c1
Fixed bug in the thread_create/3 predicate where the thread indentifer was not within scope of the at_exit/1 option.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2196 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-03 00:10:04 +00:00
pmoura
1acbfc4f80
Only register at_exit/1 hooks given by the programmer.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2195 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-03 00:02:24 +00:00
pmoura
48e8101a87
Added new flag "max_workers". It uses a C function, "p_max_workers" that is currently defined in the *wrong* place ("threads.c").
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2193 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-02 22:59:52 +00:00
vsc
929ec2412f
handle out of memory error at thread creation (obs from Paulo Moura).
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2190 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-02 17:37:07 +00:00
vsc
70b3438293
separate MAX_WORKERS and MAX_THREADS (obs from Paulo Moura)
...
MAX_AGENTS can be used in all cases
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2189 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-02 15:41:50 +00:00
vsc
7aab33a153
fix at_exit and thread_at_exit (obs from Paulo Moura).
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2188 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-02 15:13:16 +00:00
vsc
5459617266
stupid bug in assert_all (thanks to Jose Santos).
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2186 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-01 20:47:57 +00:00
vsc
5b6e8e742b
more fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2176 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-31 22:56:22 +00:00
pmoura
ff59818068
Reimplemented the message_queue_create/1-2 predicates and added new predicate message_queue_property/2 for compliance with the ISO Prolog Threads DTR.
...
Remove thread info when closing a detached thread.
Simplified creation of thread message queues.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2174 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-31 18:41:36 +00:00
pmoura
8a318a5e83
Updated the implementation of the thread_detach/1 predicate to help ensure that threads already terminated at the time of the call are destroyed instead of becoming zombie threads.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2173 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-31 16:26:31 +00:00
pmoura
8a1cfeb770
Added support for the SWI-Prolog thread_create/3 option at_exit/1 (work in progress)
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2172 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-28 10:57:28 +00:00
vsc
1c6b91cb72
improve WIN32 support and installation
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2170 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-27 00:41:33 +00:00
vsc
bee5cd8c0b
fix thread_dettach
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2168 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-26 14:51:41 +00:00
pmoura
fa73e89807
Use "resource_error(threads)" instead of "resource_error(max_threads)" for compatibility with SWI-Prolog, XSB, and the latest ISO Prolog Threads DTR.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2162 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-25 01:04:27 +00:00
vsc
47d7eee66d
ensure locking
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2161 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-25 00:15:05 +00:00
vsc
e2519f4e3a
handle message_queue_create/1 with vars right
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2160 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-25 00:11:55 +00:00
vsc
7d6e7f2613
make sure thread messages go to user_error.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2159 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-24 23:54:32 +00:00
vsc
c20c0f7767
fix maximum number of threads open error
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2158 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-24 23:48:47 +00:00
vsc
18568bd46f
fix unnecessary exception.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2156 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-22 11:38:05 +00:00
vsc
1090771c90
fix breakage in module system
...
disable stack writing in error for now
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2155 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-17 18:31:16 +00:00
vsc
19a9340011
oops
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2154 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-17 12:11:56 +00:00