Skip to content
Snippets Groups Projects
Commit 04a7316f authored by rswindell's avatar rswindell
Browse files

Added time-slice yields during packing (every 50 messages).

parent ce445f26
No related branches found
No related tags found
No related merge requests found
...@@ -186,6 +186,8 @@ bool sbbs_t::pack_rep(uint hubnum) ...@@ -186,6 +186,8 @@ bool sbbs_t::pack_rep(uint hubnum)
smb_unlockmsghdr(&smb,&msg); smb_unlockmsghdr(&smb,&msg);
msgcnt++; msgcnt++;
submsgs++; submsgs++;
if(!(l%50))
mswait(1); /* yield */
} }
eprintf(remove_ctrl_a(text[QWKPackedSubboard],tmp),submsgs,msgcnt); eprintf(remove_ctrl_a(text[QWKPackedSubboard],tmp),submsgs,msgcnt);
LFREE(post); LFREE(post);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment