equal
deleted
inserted
replaced
115 MutexLockerEx ml(PeriodicTask_lock->owned_by_self() ? NULL |
115 MutexLockerEx ml(PeriodicTask_lock->owned_by_self() ? NULL |
116 : PeriodicTask_lock); |
116 : PeriodicTask_lock); |
117 |
117 |
118 if (_num_tasks == PeriodicTask::max_tasks) { |
118 if (_num_tasks == PeriodicTask::max_tasks) { |
119 fatal("Overflow in PeriodicTask table"); |
119 fatal("Overflow in PeriodicTask table"); |
|
120 } else { |
|
121 _tasks[_num_tasks++] = this; |
120 } |
122 } |
121 _tasks[_num_tasks++] = this; |
|
122 |
123 |
123 WatcherThread* thread = WatcherThread::watcher_thread(); |
124 WatcherThread* thread = WatcherThread::watcher_thread(); |
124 if (thread != NULL) { |
125 if (thread != NULL) { |
125 thread->unpark(); |
126 thread->unpark(); |
126 } else { |
127 } else { |