/[hurd]/hurd-l4/libhurd-cap-server/cap-server-intern.h
ViewVC logotype

Diff of /hurd-l4/libhurd-cap-server/cap-server-intern.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by marcus, Mon Nov 1 16:39:24 2004 UTC revision 1.8 by neal, Tue Nov 30 10:34:18 2004 UTC
# Line 26  Line 26 
26  #include <hurd/ihash.h>  #include <hurd/ihash.h>
27  #include <hurd/cap-server.h>  #include <hurd/cap-server.h>
28    
29    #include <compiler.h>
30    
31  #include "table.h"  #include "table.h"
32  #include "task-death.h"  #include "task-death.h"
33    
# Line 114  void _hurd_cap_obj_dealloc (hurd_cap_obj Line 116  void _hurd_cap_obj_dealloc (hurd_cap_obj
116  static inline void  static inline void
117  _hurd_cap_obj_drop (hurd_cap_obj_t obj)  _hurd_cap_obj_drop (hurd_cap_obj_t obj)
118  {  {
119    if (__builtin_expect (!atomic_decrement_and_test (&obj->refs), 1))    if (EXPECT_FALSE (atomic_decrement_and_test (&obj->refs)))
120      hurd_cap_obj_unlock (obj);      hurd_cap_obj_unlock (obj);
121    else    else
122      _hurd_cap_obj_dealloc (obj);      _hurd_cap_obj_dealloc (obj);
# Line 377  struct _hurd_cap_bucket Line 379  struct _hurd_cap_bucket
379    /* The free worker threads in this bucket.  */    /* The free worker threads in this bucket.  */
380    _hurd_cap_list_item_t free_worker;    _hurd_cap_list_item_t free_worker;
381    
382    /* A hash from l4_thread_id_t numbers to the list items in    /* A hash from l4_thread_id_t to _hurd_cap_list_item_t (the list
383       PENDING_RPCs.  This is used to limit each client thread to just       items in PENDING_RPCs).  This is used to limit each client thread
384       one RPC at one time.  */       to just one RPC at one time.  */
385    struct hurd_ihash senders;    struct hurd_ihash senders;
386    
387    /* The mapping of hurd_cap_client_id_t to _hurd_cap_client_t.  */    /* Mapping from hurd_cap_client_id_t to _hurd_cap_client_entry_t.  */
388    struct hurd_table clients;    struct hurd_table clients;
389    
390    /* Reverse lookup from hurd_task_id_t to _hurd_cap_client_t.  */    /* Reverse lookup from hurd_task_id_t to _hurd_cap_client_t.  */

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26