summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-07 08:05:07 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-07 08:05:07 +0000
commitb31d83c6c7eb274144acc7c40ea4bf8424b6b1e0 (patch)
tree41223c22654dc036aaccc6e47b6f5a924707d2f5 /src/main.c
parentd6194d7356d15eaff0a8267779cbc5561a324bf8 (diff)
downloadopenocd+libswd-b31d83c6c7eb274144acc7c40ea4bf8424b6b1e0.tar.gz
openocd+libswd-b31d83c6c7eb274144acc7c40ea4bf8424b6b1e0.tar.bz2
openocd+libswd-b31d83c6c7eb274144acc7c40ea4bf8424b6b1e0.tar.xz
openocd+libswd-b31d83c6c7eb274144acc7c40ea4bf8424b6b1e0.zip
added pre/postlude fn's for when OpenOCD is sleeping.
git-svn-id: svn://svn.berlios.de/openocd/trunk@765 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index cc592238..ce6e919f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -18,16 +18,18 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-/* implementations of OpenOCD that uses multithreading needs to lock OpenOCD while calling
- * OpenOCD fn's. No-op in vanilla OpenOCD
+/* implementations of OpenOCD that uses multithreading needs to know when
+ * OpenOCD is sleeping. No-op in vanilla OpenOCD
*/
-void lockBigLock()
+void openocd_sleep_prelude()
{
}
-void unlockBigLock()
+
+void openocd_sleep_postlude()
{
}
+
/*
This is the main entry for developer PC hosted OpenOCD.
@@ -47,3 +49,4 @@ int main(int argc, char *argv[])
return openocd_main(argc, argv);
}
+