X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fecore_job%2Frb_job.c;h=71fe1e3143308f28ed545fc34396b65c6f0c3447;hb=2962de7235c7fa00db16fcfc707fae0c977b4cbc;hp=d4348cffb0660f8c6ebb598eaddd0f8e6583e960;hpb=f805cf241a9d1fb9765892f0af48ede8359e9b65;p=ruby-ecore.git diff --git a/src/ecore_job/rb_job.c b/src/ecore_job/rb_job.c index d4348cf..71fe1e3 100644 --- a/src/ecore_job/rb_job.c +++ b/src/ecore_job/rb_job.c @@ -1,7 +1,7 @@ /* - * $Id: rb_job.c 50 2004-08-01 10:18:39Z tilman $ + * $Id: rb_job.c 77 2004-08-19 17:39:29Z tilman $ * - * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) + * Copyright (C) 2004 ruby-ecore team (see AUTHORS) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -55,6 +55,13 @@ static void c_free (RbJob *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; @@ -68,6 +75,7 @@ static VALUE c_new (VALUE klass) 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); @@ -75,6 +83,12 @@ static VALUE c_new (VALUE klass) return self; } +/* + * call-seq: + * job.delete => nil + * + * Deletes job. + */ static VALUE c_delete (VALUE self) { VALUE ret = Qfalse;