process_types.hh (13306:2196f4a8201f) process_types.hh (13701:d84e5d2979a7)
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

--- 80 unchanged lines hidden (view full) ---

89 void
90 main() override
91 {
92 thread->_needsStart = false;
93 try {
94 thread->run();
95 } catch (...) {
96 thread->terminate();
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

--- 80 unchanged lines hidden (view full) ---

89 void
90 main() override
91 {
92 thread->_needsStart = false;
93 try {
94 thread->run();
95 } catch (...) {
96 thread->terminate();
97 scheduler.throwToScMain();
97 scheduler.throwUp();
98 return;
99 }
100 thread->terminate();
101 scheduler.yield();
102 }
103 };
104 friend class Context;
105

--- 25 unchanged lines hidden ---
98 return;
99 }
100 thread->terminate();
101 scheduler.yield();
102 }
103 };
104 friend class Context;
105

--- 25 unchanged lines hidden ---