process_types.hh (13180:79e680f62779) | process_types.hh (13182:9e030f636a8c) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 78 unchanged lines hidden (view full) --- 87 88 private: 89 Thread *thread; 90 91 void 92 main() override 93 { 94 thread->_needsStart = false; | 1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 78 unchanged lines hidden (view full) --- 87 88 private: 89 Thread *thread; 90 91 void 92 main() override 93 { 94 thread->_needsStart = false; |
95 thread->run(); | 95 try { 96 thread->run(); 97 } catch (...) { 98 thread->terminate(); 99 scheduler.throwToScMain(); 100 return; 101 } |
96 thread->terminate(); 97 scheduler.yield(); 98 } 99 }; 100 friend class Context; 101 102 Context *ctx; 103}; --- 23 unchanged lines hidden --- | 102 thread->terminate(); 103 scheduler.yield(); 104 } 105 }; 106 friend class Context; 107 108 Context *ctx; 109}; --- 23 unchanged lines hidden --- |