[svn:parrot] r48441 - branches/gsoc_threads/src
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Thu Aug 12 23:35:03 UTC 2010
Author: whiteknight
Date: Thu Aug 12 23:35:02 2010
New Revision: 48441
URL: https://trac.parrot.org/parrot/changeset/48441
Log:
cleanup trailing whitespace. My editor does this automatically
Modified:
branches/gsoc_threads/src/threads.c
Modified: branches/gsoc_threads/src/threads.c
==============================================================================
--- branches/gsoc_threads/src/threads.c Thu Aug 12 21:30:20 2010 (r48440)
+++ branches/gsoc_threads/src/threads.c Thu Aug 12 23:35:02 2010 (r48441)
@@ -161,7 +161,7 @@
if (next_thread == tidx && task_count > 0) {
Parrot_cx_next_task(interp, scheduler);
} else {
- /* Wake up the main thread to check if we're done before
+ /* Wake up the main thread to check if we're done before
going idle. */
Parrot_alarm_now();
Parrot_threads_idle(interp, tidx);
@@ -175,7 +175,7 @@
=item C<void Parrot_threads_block(PARROT_INTERP, INTVAL *tidx)>
-The current thread is about to block. Make sure there's another thread ready
+The current thread is about to block. Make sure there's another thread ready
to do work once we release the interpreter lock.
Use macros BLOCK_THREAD and UNBLOCK_THREAD rather than
@@ -202,7 +202,7 @@
tbl->threads[*tidx].hi_var_ptr = &next;
THREAD_STATE_CLEAR(interp, *tidx, RUNNABLE);
THREAD_STATE_SET(interp, *tidx, SCAN_STACK);
-
+
/* Maybe spawn more threads */
have_runnable = 0;
for (i = 1; i < tbl->count; ++i) {
@@ -376,7 +376,7 @@
tbl->threads[i].state = 0;
COND_DESTROY(tbl->threads[i].cvar);
-
+
tbl->count -= 1;
}
@@ -386,7 +386,7 @@
/* Shrink that table */
tbl->size /= 2;
tbl->threads = (Thread_info*) realloc(
- tbl->threads, sizeof(Thread_info) * tbl->size);
+ tbl->threads, sizeof(Thread_info) * tbl->size);
}
UNLOCK(interp->thread_lock);
@@ -526,7 +526,7 @@
/* Otherwise there's a runnable thread, run the first one. */
for (i = 1; i < tbl->count; ++i) {
if (THREAD_STATE_TEST(interp, i, RUNNABLE)) {
- COND_SIGNAL(tbl->threads[i].cvar);
+ COND_SIGNAL(tbl->threads[i].cvar);
UNLOCK(interp->thread_lock);
return i;
}
More information about the parrot-commits
mailing list