| 1089 | |
| 1090 | |
| 1091 | int t_wait_no_more_branches( struct cell *t, int extra) |
| 1092 | { |
| 1093 | int b; |
| 1094 | |
| 1095 | /* look back (in the set of active branches for a PHONY branch |
| 1096 | * that might control the EBR waiting. If found, update it |
| 1097 | * (the br_flags field), so that this is the last allowed injected |
| 1098 | * branch (the max number of allowed branches is set to the current |
| 1099 | * number of branches) */ |
| 1100 | for ( b=t->nr_of_outgoings-1; b>=t->first_branch ; b-- ) { |
| 1101 | if (TM_BRANCH(t,b).flags & T_UAC_IS_PHONY) { |
| 1102 | TM_BRANCH(t,b).br_flags=t->nr_of_outgoings+extra; |
| 1103 | return 0; |
| 1104 | } |
| 1105 | } |
| 1106 | |
| 1107 | return -1; |
| 1108 | } |
| 1109 | |
| 1110 | |
| 1111 | int t_wait_no_more_branches_timeout(struct cell *t, int code) |
no outgoing calls
no test coverage detected