ほかのライブラリー・コンポーネントによってスローされた例外。
class bad_last_alloc; class improper_lock; class invalid_multiple_scheduling; hclass missing_wait; class user_abort;
#include "tbb/tbb_exception.h"
次の表は、例外がスローされるタイミングを示します。
特定の例外用のクラス
|
例外 |
スローされるタイミング |
|---|---|
|
bad_last_alloc |
|
|
improper_lock |
すでにロックされている critical_section または reader_writer_lock をスレッドがロックしようとしたとき。 |
|
invalid_multiple_scheduling |
task_group または structured_task_group が task_handle を 2 回実行しようとしたとき。 |
|
missing_wait |
wait() メソッドが起動される前に task_group または structured_task_group が破棄されたとき。 |
|
user_abort |
ユーザーによりアボートされた concurrent_bounded_queue の push 操作または pop 操作が呼び出されたとき。 |
namespace tbb {
class bad_last_alloc: public std::bad_alloc {
public:
const char* what() const throw();
};
class improper_lock: public std::exception {
public:
const char* what() const throw();
};
class invalid_multiple_scheduler: public std::exception {
const char* what() const throw();
};
class missing_wait: public std::exception {
public:
const char* what() const throw();
};
class user_abort : public std::exception {
public:
const char* what() const throw();
};
}