Mercurial > hg > Members > kono > Cerium
diff example/renew_task/spe/Renew2.cc @ 310:c59d8927c4d1
remove smanager
author | e065746@localhost.localdomain |
---|---|
date | Mon, 08 Jun 2009 20:31:29 +0900 |
parents | 58fd16298954 |
children | b89ba1d96fff |
line wrap: on
line diff
--- a/example/renew_task/spe/Renew2.cc Mon Jun 08 19:40:27 2009 +0900 +++ b/example/renew_task/spe/Renew2.cc Mon Jun 08 20:31:29 2009 +0900 @@ -9,15 +9,15 @@ int Renew2::run(void *rbuf, void *wbuf) { - SpeProfile *profile = (SpeProfile*)smanager->global_get(0); + SpeProfile *profile = (SpeProfile*) global_get(0); profile->ProfStop(); profile->ProfPrint(); printf("[SPE] ** running Renew2\n"); printf("[SPE] Create Task : Renew3\n"); - TaskPtr nextTask = smanager->create_task(RENEW3); - smanager->wait_task(nextTask); + TaskPtr nextTask = create_task(RENEW3); + wait_task(nextTask); printf("[SPE] ** finish Renew2\n\n");