harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r633235 - in /harmony/enhanced/drlvm/trunk/vm/port/include: apr_thread_ext.h port_thread.h
Date Mon, 03 Mar 2008 18:55:15 GMT
Author: gshimansky
Date: Mon Mar  3 10:55:07 2008
New Revision: 633235

URL: http://svn.apache.org/viewvc?rev=633235&view=rev
Log:
Applied move patch 0009 from HARMONY-5504
[drlvm][port] Restructure DRLVM's sources to extract most of platform dependent code into
portlib

Patch renames apr_thread_ext.h to port_thread.h


Added:
    harmony/enhanced/drlvm/trunk/vm/port/include/port_thread.h
      - copied, changed from r633067, harmony/enhanced/drlvm/trunk/vm/port/include/apr_thread_ext.h
Removed:
    harmony/enhanced/drlvm/trunk/vm/port/include/apr_thread_ext.h

Copied: harmony/enhanced/drlvm/trunk/vm/port/include/port_thread.h (from r633067, harmony/enhanced/drlvm/trunk/vm/port/include/apr_thread_ext.h)
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/include/port_thread.h?p2=harmony/enhanced/drlvm/trunk/vm/port/include/port_thread.h&p1=harmony/enhanced/drlvm/trunk/vm/port/include/apr_thread_ext.h&r1=633067&r2=633235&rev=633235&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/include/apr_thread_ext.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/include/port_thread.h Mon Mar  3 10:55:07 2008
@@ -14,31 +14,39 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
+
+#ifndef _PORT_THREAD_H_
+#define _PORT_THREAD_H_
+
 /**
- * @author Andrey Chernyshev
- * @version $Revision$
+ * @file port_thread.h
+ * @brief PORT thread support
  */
 
 
-#ifndef APR_EXT_H
-#define APR_EXT_H
 
-#include <apr.h>
-#include <apr_errno.h>
-#include <apr_thread_proc.h>
-#include <apr_portable.h>
+/* To skip platform_types.h inclusion */
+typedef struct Registers Registers;
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
+/** @name Threads manipulation and information
+ */
+//@{
 
-APR_DECLARE(apr_status_t) apr_thread_set_priority(apr_thread_t *thread, apr_int32_t priority);
 
-APR_DECLARE(void) apr_memory_rw_barrier();
+/* Transfer control to specified register context */
+void transfer_to_regs(Registers* regs);
 
-APR_DECLARE(apr_status_t) apr_thread_yield_other(apr_thread_t *thread);
 
-APR_DECLARE(apr_status_t) apr_thread_times(apr_thread_t *thread, 
-                                apr_time_t * kernel_time, apr_time_t * user_time);
 
-APR_DECLARE(apr_status_t) apr_thread_cancel(apr_thread_t *thread);
+//@}
 
-APR_DECLARE(apr_status_t) apr_get_thread_time(apr_thread_t *thread, apr_int64_t* nanos_ptr);
+#ifdef __cplusplus
+}
+#endif
 
-#endif  /* APR_EXT_H */
+#endif  /* _PORT_THREAD_H_ */



Mime
View raw message