ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/State.xs
(Generate patch)

Comparing Coro/Coro/State.xs (file contents):
Revision 1.358 by root, Mon Jun 29 04:30:25 2009 UTC vs.
Revision 1.359 by root, Mon Jun 29 05:07:19 2009 UTC

204static CV *cv_pool_handler; 204static CV *cv_pool_handler;
205static CV *cv_coro_state_new; 205static CV *cv_coro_state_new;
206 206
207/* Coro::AnyEvent */ 207/* Coro::AnyEvent */
208static SV *sv_activity; 208static SV *sv_activity;
209
210/* enable processtime/realtime profiling */
211static char profile_times;
212typedef U32 coro_ts[2];
209 213
210static struct coro_cctx *cctx_first; 214static struct coro_cctx *cctx_first;
211static int cctx_count, cctx_idle; 215static int cctx_count, cctx_idle;
212 216
213enum { 217enum {
3367 if (items > 1) 3371 if (items > 1)
3368 { 3372 {
3369 if (ix) 3373 if (ix)
3370 newprio = coro->prio - newprio; 3374 newprio = coro->prio - newprio;
3371 3375
3372 if (newprio < PRIO_MIN) newprio = PRIO_MIN; 3376 if (newprio < CORO_PRIO_MIN) newprio = CORO_PRIO_MIN;
3373 if (newprio > PRIO_MAX) newprio = PRIO_MAX; 3377 if (newprio > CORO_PRIO_MAX) newprio = CORO_PRIO_MAX;
3374 3378
3375 coro->prio = newprio; 3379 coro->prio = newprio;
3376 } 3380 }
3377} 3381}
3378 OUTPUT: 3382 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines