Changeset 34477 for lang/objective-cplusplus
- Timestamp:
- 07/19/09 13:24:13 (4 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk
- Files:
-
- 1 removed
- 6 modified
-
Makefile.am (modified) (1 diff)
-
am/i3_test.am (modified) (2 diffs)
-
src/Main.cpp (modified) (1 diff)
-
src/Mediator.cpp (deleted)
-
src/Mediator.h (modified) (1 diff)
-
src/mil/include/mil/ModuleCommon.h (modified) (1 diff)
-
windows/fakecygpty.exe.lzma (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/Makefile.am
r34443 r34477 10 10 11 11 if ENABLE_DEBUG 12 bin_PROGRAMS += i3_test mil_test12 bin_PROGRAMS += i3_test i3_test2 mil_test 13 13 WARNING_OPTIONS = \ 14 14 -Wall \ -
lang/objective-cplusplus/i3/trunk/am/i3_test.am
r34377 r34477 2 2 # Common 3 3 4 i3_test_exe : i3_test${EXEEXT} # for IDE 4 i3_test_exe : i3_test${EXEEXT} 5 i3_test2_exe : i3_test2${EXEEXT} 5 6 6 7 i3_test_SOURCES = ${i3_SOURCES_NO_MAIN} \ … … 18 19 i3_test_LDADD = ${i3_LDADD} #${BOOST_UNIT_TEST_FRAMEWORK_LIB} 19 20 21 i3_test2_SOURCES = ${i3_test_SOURCES_NO_MAIN} \ 22 src/mil/src/TestMain.cpp \ 23 src/Test3.cpp 24 i3_test2_CXXFLAGS = ${i3_test_CXXFLAGS} 25 i3_test2_LDFLAGS = ${i3_test_LDFLAGS} 26 i3_test2_LDADD = ${i3_test_LDADD} 27 20 28 # --------------------------------------- 21 29 # Common -
lang/objective-cplusplus/i3/trunk/src/Main.cpp
r34447 r34477 1 1 #include <PrecompiledHeaders.h> 2 2 #include "Common.h" 3 #include "InputWindow.h" 4 #include "OutputWindow.h" 5 #include "CompletionWindow.h" 6 #include "Delegate.h" 7 #include "ShellManager.h" 8 3 9 #include "Mediator.h" 4 10 -
lang/objective-cplusplus/i3/trunk/src/Mediator.h
r34447 r34477 4 4 5 5 #pragma once 6 #include "Common.h"7 #include "InputWindow.h"8 #include "OutputWindow.h"9 #include "CompletionWindow.h"10 #include "Delegate.h"11 #include "ShellManager.h"12 6 13 7 namespace i3 { 8 class Mediator : public boost::noncopyable { 9 CompletionWindow completionWindow; 10 InputWindow inputWindow; 11 OutputWindow outputWindow; 12 ShellManager shellManager; 13 Delegate delegate; 14 public: 15 Mediator(): 16 completionWindow(*this), 17 inputWindow(*this), 18 outputWindow(*this), 19 shellManager(*this), 20 delegate(*this) { 21 } 14 22 15 class Mediator : public boost::noncopyable { 16 CompletionWindow completionWindow; 17 InputWindow inputWindow; 18 OutputWindow outputWindow; 19 ShellManager shellManager; 20 Delegate delegate; 21 public: 22 CompletionWindow& getCompletionWindow(); 23 OutputWindow& getOutputWindow(); 24 InputWindow& getInputWindow(); 25 ShellManager& getShellManager(); 26 Delegate& getDelegate(); 27 Mediator(); 28 ~Mediator(); 29 exit_status start(); 30 }; 23 exit_status start() { 24 #if !defined(MIL_GUI_COCOA) || defined(__APPLE__) 25 // threaded 26 inputWindow.createGui(); 27 completionWindow.start(); 28 outputWindow.start(); 29 shellManager.start(); 30 delegate.start(); 31 inputWindow.run(); 32 #else 33 // no threaded gui 34 debug << "no threaded gui"; 35 completionWindow.createGui(); 36 outputWindow.createGui(); 37 inputWindow.createGui(); 38 shellManager.start(); 39 40 debug << "before loop"; 41 42 global_loop(); 43 #endif 44 delegate.destroy(); 45 return 0; 46 } 47 CompletionWindow& getCompletionWindow() { 48 return completionWindow; 49 } 50 OutputWindow& getOutputWindow() { 51 return outputWindow; 52 } 53 InputWindow& getInputWindow() { 54 return inputWindow; 55 } 56 ShellManager& getShellManager() { 57 return shellManager; 58 } 59 Delegate& getDelegate() { 60 return delegate; 61 } 62 }; 31 63 32 64 } 65 -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/ModuleCommon.h
r34448 r34477 114 114 115 115 DebugInfo* d = (DebugInfo*)memory; 116 BOOST_ASSERT(d->os_thread_id == GetCurrentThreadId()); 117 BOOST_ASSERT(d->mil_thread_id == thread_id); 118 BOOST_ASSERT(d->blocks == blocks); 116 if (d->os_thread_id != GetCurrentThreadId()) { 117 halt << "d->os_thread_id != GetCurrentThreadId(), " 118 << d->os_thread_id << " != " << GetCurrentThreadId(); 119 } 120 if (d->mil_thread_id != thread_id) { 121 halt << "d->mil_thread_id == thread_id, " 122 << d->mil_thread_id << " != " << thread_id; 123 } 124 if (d->blocks != blocks) { 125 halt << "d->blocks != blocks, " 126 << d->blocks << " != " << blocks; 127 } 119 128 ::free((void*)memory); 120 129 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)