Changeset 15688
- Timestamp:
- 05/12/12 11:45:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/channel.h
r15143 r15688 36 36 } 37 37 38 struct channel* getlastchannel(struct channel* node) 38 //flag 0: lock 39 //flag 1: no lock 40 struct channel* getlastchannel(struct channel* node, int flag) 39 41 { 40 42 debug(1000, "in"); 41 43 struct channel *prev = NULL; 42 44 43 m_lock(&status.channelmutex, 5);45 if(flag == 0) m_lock(&status.channelmutex, 5); 44 46 while(node != NULL) 45 47 { … … 47 49 node = node->next; 48 50 } 49 m_unlock(&status.channelmutex, 5);51 if(flag == 0) m_unlock(&status.channelmutex, 5); 50 52 51 53 debug(1000, "out"); … … 136 138 if(node->prev == NULL) 137 139 { 138 last = getlastchannel(channel );140 last = getlastchannel(channel, 1); 139 141 140 142 if(node->next != NULL)
Note: See TracChangeset
for help on using the changeset viewer.