Skip to content

Commit

Permalink
[TIMOB-26425] Implement threadName on main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann committed Oct 2, 2018
1 parent 994ff5e commit 1cbdf14
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions iphone/Classes/KrollContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,16 @@ + (void)initialize
}
}

#ifdef TI_USE_KROLL_THREAD

- (NSString *)threadName
{
#ifdef TI_USE_KROLL_THREAD
return [NSString stringWithFormat:@"KrollContext<%@>", krollContextId];
}
#else
return @"KrollContext<MainThread>";
#endif
}

- (id)init
{
if (self = [super init]) {
Expand Down

0 comments on commit 1cbdf14

Please sign in to comment.