You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, ideally we'd have task::set_name, but then we have to deal with passing strings to the runtime. It's not hard, but it's always enough to discourage me from it.
still valid, and I think important enough for production use (accounting / profiling of tasks in general) that I'm going to nominate for production ready.
Re-nominating in order to de-milestone this; we're trying to cut back the milestones to a more manageable size and this doesn't seem like a blocker to me.
Activity
eholk commentedon Jul 16, 2012
It'd also be nice to be able to give tasks names.
bblum commentedon Jul 16, 2012
oh, yeah, there's a hole for that already in the runtime code, just no way to do it.
eholk commentedon Jul 16, 2012
Yeah, ideally we'd have
task::set_name
, but then we have to deal with passing strings to the runtime. It's not hard, but it's always enough to discourage me from it.bblum commentedon Jul 16, 2012
as_c_str
, and strcpy on the runtime side? (well, strdup, probably)eholk commentedon Jul 17, 2012
I think that's basically it.
bblum commentedon Jul 17, 2012
hey @eholk, what do you think of this scary comment in rust_task.h?
EDIT: it's ok as is, because the only args are ever "main" or NULL. it's just hinting that it needs a strdup.
eholk commentedon Jul 18, 2012
Yeah, I was thinking maybe just allocate a fixed sized char buffer and copy the string into it.
graydon commentedon May 8, 2013
still valid, and I think important enough for production use (accounting / profiling of tasks in general) that I'm going to nominate for production ready.
brson commentedon May 16, 2013
Some stats relevant to the new scheduler:
graydon commentedon Jun 6, 2013
accepted for well-covered milestone
graydon commentedon Jun 28, 2013
See also #6810
catamorphism commentedon Sep 23, 2013
Re-nominating in order to de-milestone this; we're trying to cut back the milestones to a more manageable size and this doesn't seem like a blocker to me.
catamorphism commentedon Sep 26, 2013
Just a bug, de-milestoning
5 remaining items