(String[] args)
| 144 | } |
| 145 | |
| 146 | public static void main(String[] args) throws InterruptedException |
| 147 | { |
| 148 | gdal.AllRegister(); |
| 149 | |
| 150 | testInt64(); |
| 151 | |
| 152 | testGetMemFileBuffer(); |
| 153 | |
| 154 | int nbIters = 50; |
| 155 | |
| 156 | method = METHOD_JAVA_ARRAYS; |
| 157 | if (args.length >= 1 && args[0].equalsIgnoreCase("-dbb")) |
| 158 | method = METHOD_DBB; |
| 159 | |
| 160 | Thread t1 = new Thread(new GDALTestIO("/vsimem/test1.tif", nbIters)); |
| 161 | Thread t2 = new Thread(new GDALTestIO("/vsimem/test2.tif", nbIters)); |
| 162 | t1.start(); |
| 163 | t2.start(); |
| 164 | |
| 165 | synchronized(notifier) |
| 166 | { |
| 167 | while( nReady != 2 ) |
| 168 | { |
| 169 | try |
| 170 | { |
| 171 | notifier.wait(); |
| 172 | } |
| 173 | catch(InterruptedException ie) |
| 174 | { |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | |
| 180 | synchronized(waiter) |
| 181 | { |
| 182 | bWait = false; |
| 183 | waiter.notifyAll(); |
| 184 | } |
| 185 | |
| 186 | t1.join(); |
| 187 | t2.join(); |
| 188 | |
| 189 | System.out.println("Success !"); |
| 190 | } |
| 191 | |
| 192 | private static void testInt64() { |
| 193 |
nothing calls this directly
no test coverage detected