• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 2594 for trunk/components/server/src/ome/services/sessions/SessionManager.java

Show
Ignore:
Timestamp:
07/05/08 22:16:05 (5 months ago)
Author:
jmoore
Message:

ticket:1018 - Changed reference counting logic

  • No longer using AtomicInteger
  • Count is not allowed to go below 0
  • Rather, SessionManager? uses sub-zero values
Files:
1 modified

  • trunk/components/server/src/ome/services/sessions/SessionManager.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/components/server/src/ome/services/sessions/SessionManager.java

    r2592 r2594  
    7575    Session find(String uuid); 
    7676 
    77     void close(String uuid); 
     77    /** 
     78     * If reference count for the session is less than 1, close the session. 
     79     * Otherwise decrement the reference count. The current reference count is 
     80     * returned. If -1, then no such session existed. If -2, then the session 
     81     * was removed. 
     82     */ 
     83    int close(String uuid); 
    7884 
    7985    // Security methods 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/