TAILIEUCHUNG - Symbian OS Explained Effective C++ Programming for Smartphones phần 8

Họ thường được gọi là mã phía máy khách thực hiện trong một phương thức xuất khẩu chẳng hạn như Open () hoặc Connect (). Như một ví dụ, khi bạn bắt đầu một phiên họp với các máy chủ tập tin bạn gọi RFS:: Connect (), mà chính nó gọi RSessionBase:: CreateSession (). Khi phiên giao dịch được mở ra thành công, tương ứng hạt nhân và | Simpo PDF Merge and Split Unregistered Version - http A solution is to run deliberately badly-behaved client code in a separate test thread programmatically checking the resulting exit reasons and categories of the panicked thread against those you would expect to have occurred. You should disable just-in-time debugging for the duration of the test so that only the test thread rather than the emulator is terminated. For example enum TChilliStrength ESweetPepper EJalapeno EScotchBonnet void EatChilli TChilliStrength aStrength _LIT KTooStrong Too Strong __ASSERT_ALWAYS EScotchBonnet aStrength User Panic KTooStrong KErrAbort . Omitted for clarity Thread function Tint TestPanics TAny aData A panic occurs if code is called incorrectly EatChilli EScotchBonnet return KErrNone void TestDefence Save current just-in-time status TBool jitEnabled User JustInTime Disable just-in-time debugging for this test User SetJustInTime EFalse _LIT KPanicThread PanicThread Create a separate thread in which to run the panic testing RThread testThread TInt r KPanicThread TestPanics KDefaultStackSize NULL NULL ASSERT KErrNone r Request notification of testThread s death see Chapter 10 TRequestStatus tStatus tStatus User WaitForRequest tStatus Wait until the thread dies ASSERT EExitPanic Test the panic reason is as expected ASSERT KErrAbort Set just-in-time back to previous setting User SetJustInTime jitEnabled Simpo PDF Merge and Split Unregistered Versionv-http 53 Faults Leaves and Panics A fault is raised if a critical error occurs such that the operating system cannot continue normal operation. On hardware this results in a reboot. A fault can only occur in kernel-side code or a thread which is essential to the system for example the file server so typically you will not encounter them unless you are writing device drivers or uncover a bug

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.