Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

thread - exception handling

 
Miran Cvenkel
Ranch Hand
Posts: 198
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Stephan van Hulst
Bartender
Pie
Posts: 5810
61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it depends what you want to do when an exception occurs. If in thread 2 you want to notify a user interface of e-mails that didn't get sent, and the user interface is part of thread 1's context, then you should simply pass the user interface to thread 2 when you start it, and let thread 2 deal with the user interface itself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic