Show
Ignore:
Timestamp:
03/04/08 16:19:45 (10 months ago)
Author:
pmoura
Message:

Corrected a Logtalk compiler bug that allowed a predicate to be declared both dynamic and synchronized. Improved error checking when compiling dynamic predicate directives. Improved documentation of some internal multi-threading support predicates.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/manuals/userman/threads.html

    r3852 r4125  
    211211 
    212212<p> 
    213 The <code>synchronized/1</code> directive must precede any local calls to the synchronized predicate (or synchronized non-terminal) in order to ensure proper compilation. In addition, as each Logtalk entity is independently compiled, this directive must be included in every object or category that contains a definition for the described predicate, even if the predicate declaration is inherited from another entity, in order to ensure proper compilation. 
     213The <code>synchronized/1</code> directive must precede any local calls to the synchronized predicate (or synchronized non-terminal) in order to ensure proper compilation. In addition, as each Logtalk entity is independently compiled, this directive must be included in every object or category that contains a definition for the described predicate, even if the predicate declaration is inherited from another entity, in order to ensure proper compilation. Note that a synchronized predicate cannot be declared dynamic. To ensure atomic updates of a dynamic predicate, declare as synchronized the predicate performing the update. 
    214214</p> 
    215215<p> 
     
    248248    <div class="copyright"> 
    249249        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    250         <span>Last updated on: September 15, 2007</span> 
     250        <span>Last updated on: March 5, 2008</span> 
    251251    </div> 
    252252    <div class="navbottom">