[Pvfs2-cvs] commit by walt in pvfs2-1/src/common/misc: void.sm
CVS commit program
cvs at parl.clemson.edu
Wed Aug 30 14:04:54 EDT 2006
Update of /projects/cvsroot/pvfs2-1/src/common/misc
In directory parlweb1:/tmp/cvs-serv3810
Added Files:
Tag: WALT3
void.sm
Log Message:
This is used as a placeholder in a few key areas and should never
actually run.
--- /dev/null 2004-06-24 14:04:38.000000000 -0400
+++ void.sm 2006-08-30 14:04:54.000000000 -0400
@@ -0,0 +1,50 @@
+/*
+ * (C) 2003 Clemson University and The University of Chicago
+ *
+ * See COPYING in top-level directory.
+ */
+
+#include <string.h>
+#include <assert.h>
+
+#include "pvfs2-debug.h"
+#include "job.h"
+#include "gossip.h"
+#include "str-utils.h"
+#include "state-machine.h"
+
+
+static PINT_sm_action void_action(
+ struct PINT_smcb *smcb, job_status_s *js_p);
+
+%%
+
+machine pvfs2_void_sm(
+ void_action_state)
+{
+ state void_action_state
+ {
+ run void_action;
+ default => terminate;
+ }
+}
+
+%%
+
+static PINT_sm_action void_action(
+ struct PINT_smcb *smcb, job_status_s *js_p)
+{
+ gossip_err("This pvfs2_void state machine should never run!\n");
+ PINT_smcb_set_complete(smcb);
+ return SM_ACTION_COMPLETE;
+}
+
+/*
+ * Local variables:
+ * mode: c
+ * c-indent-level: 4
+ * c-basic-offset: 4
+ * End:
+ *
+ * vim: ft=c ts=8 sts=4 sw=4 expandtab
+ */
More information about the Pvfs2-cvs
mailing list