]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
implement * and / operators for wxPoint, not only wxSize.
[wxWidgets.git] / src / unix / threadpsx.cpp
index 4583b6b8680818a990a22256566f8116cfdf0602..95d8586f91379b1b1a00f6c98f90d5dae0d8ebeb 100644 (file)
@@ -1476,6 +1476,11 @@ wxThreadError wxThread::Delete(ExitCode *rc)
             }
             //else: can't wait for detached threads
     }
             }
             //else: can't wait for detached threads
     }
+    
+    if (state == STATE_NEW)
+        return wxTHREAD_MISC_ERROR;
+            // for coherency with the MSW implementation, signal the user that 
+            // Delete() was called on a thread which didn't start to run yet.
 
     return wxTHREAD_NO_ERROR;
 }
 
     return wxTHREAD_NO_ERROR;
 }