/*
- * Copyright 2001-2006 Internet2
+ * Copyright 2001-2007 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
/**
- * @file Threads.h
+ * @file xmltooling/util/Threads.h
*
* Thread and locking wrappers
*/
#include <xmltooling/base.h>
#include <xmltooling/exceptions.h>
+#include <signal.h>\r
+
namespace xmltooling
{
DECL_XMLTOOLING_EXCEPTION(ThreadingException,XMLTOOL_EXCEPTIONAPI(XMLTOOL_API),xmltooling,XMLToolingException,Exceptions during threading/locking operations);
* @param return_val the return value for the thread
*/
static void exit(void* return_val);
-
+
+ /**
+ * Sleeps the current thread for the specified amount of time.
+ *
+ * @param seconds time to sleep
+ */
+ static void sleep(int seconds);
#ifndef WIN32
/**
* Masks all signals from a thread.