projects
/
ruby-ecore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Explicitly initialize the deleted flag for the timer, idler and job objects.
[ruby-ecore.git]
/
src
/
ecore_job
/
rb_job.c
diff --git
a/src/ecore_job/rb_job.c
b/src/ecore_job/rb_job.c
index d4348cffb0660f8c6ebb598eaddd0f8e6583e960..516ceccc1a60e888c99505a94165bdc63e2541a6 100644
(file)
--- a/
src/ecore_job/rb_job.c
+++ b/
src/ecore_job/rb_job.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_job.c
50 2004-08-01 10:18:39
Z tilman $
+ * $Id: rb_job.c
67 2004-08-12 20:08:13
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-55,6
+55,13
@@
static void c_free (RbJob *job)
free (job);
}
free (job);
}
+/*
+ * call-seq:
+ * Ecore::Job::Job.new { block } => job
+ *
+ * Creates an Ecore::Job::Job object.
+ * After execution, the object will be deleted.
+ */
static VALUE c_new (VALUE klass)
{
VALUE self;
static VALUE c_new (VALUE klass)
{
VALUE self;
@@
-68,6
+75,7
@@
static VALUE c_new (VALUE klass)
ecore_init ();
job->callback = rb_block_proc ();
ecore_init ();
job->callback = rb_block_proc ();
+ job->deleted = false;
job->real = ecore_job_add (on_job, job);
rb_obj_call_init (self, 0, NULL);
job->real = ecore_job_add (on_job, job);
rb_obj_call_init (self, 0, NULL);
@@
-75,6
+83,12
@@
static VALUE c_new (VALUE klass)
return self;
}
return self;
}
+/*
+ * call-seq:
+ * job.delete => nil
+ *
+ * Deletes <i>job</i>.
+ */
static VALUE c_delete (VALUE self)
{
VALUE ret = Qfalse;
static VALUE c_delete (VALUE self)
{
VALUE ret = Qfalse;