Navigation


Changeset 641:69d3579f6c6c in freeDiameter for doc


Ignore:
Timestamp:
Dec 21, 2010, 10:29:46 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Tags:
1.0.3-rc3
Message:

First version of dbg_interactive is complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/dbg_interactive.py.sample

    r640 r641  
    648648
    649649# Get the list of peers defined in the system
    650 # (well, we are supposed actually to readlock fd_g_peers_rw before doing this, but it should be fine most of the time)
     650# (we are supposed to readlock fd_g_peers_rw before accessing this list)
     651cvar.fd_g_peers_rw.rdlock()
    651652peers = cvar.fd_g_peers.enum_as("struct peer_hdr *")
     653cvar.fd_g_peers_rw.unlock()
    652654for p in peers:
    653655   print "Peer:", p.info.pi_diamid
     
    727729
    728730
     731
     732############# POSIX functions wrappers ############
     733
     734# The interface also provides wrappers around base POSIX
     735# synchronization functions:
     736
     737m = pthread_mutex_t()
     738m.lock()
     739m.unlock()
     740
     741c = pthread_cond_t()
     742c.signal()
     743c.broadcast()
     744c.wait(m)
     745c.timedwait(m, 5)  # it takes a relative time
     746
     747r = pthread_rwlock_t()
     748r.rdlock()
     749r.unlock()
     750r.wrlock()
Note: See TracChangeset for help on using the changeset viewer.