harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r646267 - /harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c
Date Wed, 09 Apr 2008 11:09:57 GMT
Author: gshimansky
Date: Wed Apr  9 04:09:54 2008
New Revision: 646267

URL: http://svn.apache.org/viewvc?rev=646267&view=rev
Log:
Added a comment from a patch in HARMONY-3451 about an unobvious thread flag


Modified:
    harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c

Modified: harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c?rev=646267&r1=646266&r2=646267&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c Wed Apr  9 04:09:54 2008
@@ -47,6 +47,9 @@
     int r;
 
     pthread_attr_init(&attr);
+    // By default, threads are created in joinable state.
+    // Since we never use os_thread_join except for canceling a thread,
+    // we can create threads in detached state instead.
     pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 
     if (stacksize != 0) {



Mime
View raw message