コード例 #1
0
ファイル: IoCoroutine.c プロジェクト: Akiyah/io
void IoCoroutine_free(IoCoroutine *self)
{
	Coro *coro = DATA(self)->cid;
	if (coro) Coro_free(coro);
	Stack_free(DATA(self)->ioStack);
	io_free(DATA(self));
}
コード例 #2
0
ファイル: IoCoroutine.c プロジェクト: jdp/io
void IoCoroutine_free(IoCoroutine *self)
{
	//printf("IoCoroutine_free %p\n", (void *)self);
	Coro *coro = DATA(self)->cid;
	if (coro) Coro_free(coro);
	Stack_free(DATA(self)->ioStack);
	io_free(DATA(self));
}
コード例 #3
0
ファイル: IoCoroutine.c プロジェクト: eklitzke/io
IoObject *IoCoroutine_freeStack(IoCoroutine *self, IoObject *locals, IoMessage *m)
{
	IoCoroutine *current = IoState_currentCoroutine(IOSTATE);

	if (current != self && DATA(self)->cid)
	{
		Coro_free(DATA(self)->cid);
		DATA(self)->cid = NULL;
	}

	return self;
}
コード例 #4
0
ファイル: IoCoroutine.c プロジェクト: jdp/io
IO_METHOD(IoCoroutine, freeStack)
{
  /*doc Coroutine freeStack
  Frees all the internal data from the receiver's stack. Returns self.
  */
	IoCoroutine *current = IoState_currentCoroutine(IOSTATE);

	if (current != self && DATA(self)->cid)
	{
		Coro_free(DATA(self)->cid);
		DATA(self)->cid = NULL;
	}

	return self;
}