process_types.hh (12998:68d2c7538b82) | process_types.hh (13092:a4995c783157) |
---|---|
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 Thread *thread; 90 91 void 92 main() override 93 { 94 thread->_needsStart = false; 95 thread->run(); 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 Thread *thread; 90 91 void 92 main() override 93 { 94 thread->_needsStart = false; 95 thread->run(); 96 thread->terminate(); |
97 scheduler.yield(); |
|
97 } 98 }; 99 friend class Context; 100 101 Context *ctx; 102}; 103 104class CThread : public Thread --- 21 unchanged lines hidden --- | 98 } 99 }; 100 friend class Context; 101 102 Context *ctx; 103}; 104 105class CThread : public Thread --- 21 unchanged lines hidden --- |