Changeset 4571 for trunk/compiler

Show
Ignore:
Timestamp:
11/05/08 15:04:03 (2 months ago)
Author:
pmoura
Message:

Removed support for the deprecated message_queue_create/1 Prolog built-in predicate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4570 r4571  
    1346313463 
    1346413464'$lgt_init_object_message_queue'(ObjPrefix) :- 
    13465     (   '$lgt_predicate_property'(message_queue_create(_, _), built_in) -> 
    13466         catch(message_queue_create(_, [alias(ObjPrefix)]), _, true) 
    13467     ;   catch(message_queue_create(ObjPrefix), _, true) 
    13468     ). 
     13465    catch(message_queue_create(_, [alias(ObjPrefix)]), _, true). 
    1346913466 
    1347013467 
     
    1382313820 
    1382413821 
     13822 
     13823% '$lgt_mt_threaded_call_abort'(+list) 
     13824% 
     13825% signal all individual threads to abort; we must use catch/3 as some threads may no longer exist 
     13826 
    1382513827'$lgt_mt_threaded_call_abort'([]). 
    1382613828 
     
    1383213834'$lgt_mt_abort_thread'(Id) :- 
    1383313835    (   thread_peek_message('$lgt_master') -> 
     13836        % master thread; send it a message to terminate its slave threads: 
    1383413837        thread_send_message(Id, '$lgt_result'(_, terminate)) 
    13835     ;   throw('$lgt_terminated') 
     13838    ;   % slave(-only) thread: 
     13839        throw('$lgt_terminated') 
    1383613840    ). 
    1383713841 
     
    1386413868 
    1386513869 
    13866 % '$lgt_create_mutexes'(list(mutex_identifier)) 
     13870% '$lgt_create_mutexes'(+list(mutex_identifier)) 
    1386713871% 
    1386813872% create entity mutexes (called when loading an entity);