Changeset 4453 for trunk/compiler

Show
Ignore:
Timestamp:
08/29/08 13:53:41 (4 months ago)
Author:
pmoura
Message:

Removed the Logtalk dispatcher thread used for dispatching asynchronous multi-threading calls, simplifying the implementation and improving the performance of the asynchronous built-in multi-threading predicates.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4452 r4453  
    70047004'$lgt_tr_body'(threaded_peek(Goal, Tag), MTGoal, '$lgt_dbg_goal'(threaded_peek(Goal, Tag), MTGoal, DbgCtx), Ctx) :- 
    70057005    !, 
    7006     '$lgt_ctx_ctx'(Ctx, _, Sender, This, Self, _, _, _), 
     7006    '$lgt_ctx_ctx'(Ctx, _, _, This, Self, _, _, _), 
    70077007    '$lgt_tr_body'(Goal, TGoal, _, Ctx), 
    70087008    (   '$lgt_pp_object_'(_, Prefix, _, _, _, _, _, _, _, _, _) -> 
    7009         MTGoal = '$lgt_mt_peek_reply'(Prefix, TGoal, Sender, This, Self, Tag) 
    7010     ;   MTGoal = '$lgt_mt_peek_reply'(TGoal, Sender, This, Self, Tag) 
     7009        MTGoal = '$lgt_mt_peek_reply'(Prefix, TGoal, This, Self, Tag) 
     7010    ;   MTGoal = '$lgt_mt_peek_reply'(TGoal, This, Self, Tag) 
    70117011    ), 
    70127012    '$lgt_ctx_dbg_ctx'(Ctx, DbgCtx). 
     
    70257025'$lgt_tr_body'(threaded_peek(Goal), MTGoal, '$lgt_dbg_goal'(threaded_peek(Goal), MTGoal, DbgCtx), Ctx) :- 
    70267026    !, 
    7027     '$lgt_ctx_ctx'(Ctx, _, Sender, This, Self, _, _, _), 
     7027    '$lgt_ctx_ctx'(Ctx, _, _, This, Self, _, _, _), 
    70287028    '$lgt_tr_body'(Goal, TGoal, _, Ctx), 
    70297029    (   '$lgt_pp_object_'(_, Prefix, _, _, _, _, _, _, _, _, _) -> 
    7030         MTGoal = '$lgt_mt_peek_reply'(Prefix, TGoal, Sender, This, Self, []) 
    7031     ;   MTGoal = '$lgt_mt_peek_reply'(TGoal, Sender, This, Self, []) 
     7030        MTGoal = '$lgt_mt_peek_reply'(Prefix, TGoal, This, Self, []) 
     7031    ;   MTGoal = '$lgt_mt_peek_reply'(TGoal, This, Self, []) 
    70327032    ), 
    70337033    '$lgt_ctx_dbg_ctx'(Ctx, DbgCtx). 
     
    1322613226 
    1322713227 
    13228 % '$lgt_mt_peek_reply'(+callable, +object_identifier, +object_identifier, +object_identifier, @nonvar) 
     13228% '$lgt_mt_peek_reply'(+callable, +object_identifier, +object_identifier, @nonvar) 
    1322913229% 
    1323013230% peeks a reply to a goal sent to the senders object message queue (this predicate is called from within categories) 
    1323113231 
    13232 '$lgt_mt_peek_reply'(Goal, Sender, This, Self, Tag) :- 
     13232'$lgt_mt_peek_reply'(Goal, This, Self, Tag) :- 
    1323313233    '$lgt_current_object_'(This, Queue, _, _, _, _, _, _, _, _, _, _, _) -> 
    13234     '$lgt_mt_peek_reply'(Queue, Goal, Sender, This, Self, Tag). 
    13235  
    13236  
    13237  
    13238 % '$lgt_mt_peek_reply'(+atom, +callable, +object_identifier, +object_identifier, +object_identifier, @nonvar) 
     13234    '$lgt_mt_peek_reply'(Queue, Goal, This, Self, Tag). 
     13235 
     13236 
     13237 
     13238% '$lgt_mt_peek_reply'(+atom, +callable, +object_identifier, +object_identifier, @nonvar) 
    1323913239% 
    1324013240% peeks a reply to a goal sent to the senders object message queue 
    1324113241 
    13242 '$lgt_mt_peek_reply'(Queue, Goal, _, This, Self, Tag) :- 
     13242'$lgt_mt_peek_reply'(Queue, Goal, This, Self, Tag) :- 
    1324313243    thread_peek_message(Queue, '$lgt_reply'(Goal, This, Self, Tag, _, _)). 
    1324413244