Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ChangeLog « System.Threading « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba1a9664f98b387d0348cd1edab81a56145ee473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
2004-06-24  Dick Porter  <dick@ximian.com>

	* Mutex.cs: Implement the createdNew parameter

2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>

	* Thread.cs: changed return type of VolatileRead to UIntPtr
	* ThreadPool.cs: set return type of SetMinThreads to bool

2004-06-15  Lluis Sanchez Gual  <lluis@ximian.com>

	* Thread.cs: Added new fields to keep sync with MonoThread.
	  Removed state changes in Sleep and Join. The state change is now done
	  in the icall. For accessing to internal fields lock with synch_lock
	  instead of this, which can be a source of deadlocks.

2004-06-15  Lluis Sanchez Gual  <lluis@ximian.com>

	* Timer.cs: Don't abort the thread if Dispose() is called from the runner
	  thread.

2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Thread.cs:
	(CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
	the thread IPrincipal if we get it from the AppDomain.

2004-06-09  Gert Driesen <drieseng@users.sourceforge.net>

	* CompressedStack.cs: Added finalizer to match public API of
	MS.NET

2004-05-19  Lluis Sanchez Gual <lluis@ximian.com>

	* Thread.cs: Some fixes in Abort. Implemented Suspend and Resume.
	  Added internal interruption_requested field.

2004-05-13  Sebastien Pouliot  <sebastien@ximian.com>

	* CompressedStack.cs: Added an internal constructor so a default one
	doesn't appear with corcompare.
	* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
	corcompare. Both throw a NotImplementedException.
	* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
	overloads) to please corcompare. All throw a NotImplementedException.

2004-05-12  Zoltan Varga  <vargaz@freemail.hu>

	* CompressedStack.cs: New file.

2004-04-15  Lluis Sanchez Gual <lluis@ximian.com>

	* ThreadPool.cs: Added GetMinThreads and SetMinThreads.
	* Timer.cs: In Change, return false if the timer has been disposed.
	In Dispose, notify the WaitHandle.

2004-04-11  Lluis Sanchez Gual <lluis@ximian.com>

	* ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
	  if the thread already has the lock. Added readyWaitingReaders variable to
	  keep track of threads ready to get the reader lock.

2004-04-11  Lluis Sanchez Gual <lluis@ximian.com>

	* LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
	  lock(this) when entering the rwlock to avoid a deadlock.
	* ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
	  is not empty (even if state==0).

2004-04-09  Zoltan Varga  <vargaz@freemail.hu>

	* Timer.cs: Call the callback immediately if dueTime is 0. Fixes
	#56728.

2004-04-08  Jackson Harper  <jackson@ximian.com>

	* ReaderWriterLock.cs: Fix tyop
	
2004-04-08  Lluis Sanchez Gual <lluis@ximian.com>

	* ReaderWriterLock.cs: Changed some methods to private.
	* WaitHandle.cs: In Wait methods, release the synchronization context when 
	  exitContext is true.

2004-04-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Timer.cs: call Abort on the Runner instance too.

2004-04-07  Jackson Harper  <jackson@ximian.com>

	* Thread.cs: Use new culture info method for constructing the
	current culture.
	
2004-04-07  Lluis Sanchez Gual <lluis@ximian.com>

	* ReaderWriterLock.cs: When a thread holds a writer lock, a call to
	  AcquireReaderLock works like a call to AcquireWriterLock.

2004-04-06  Lluis Sanchez Gual <lluis@ximian.com>

	* Monitor.cs: In Wait(), release the synchronization context when 
	  exitContext is true.

2004-04-06  Lluis Sanchez Gual <lluis@ximian.com>

	* LockCookie.cs: Keep in this class the count of reader or writer locks
	  for a thread, not only whether it has locks or not.
	* LockQueue.cs: Added property for checking if a thread is waiting in
	  the queue. Wait now returns a boolean that set to false on timeout 
	  expiration.
	* ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
	  The main change is that now it keeps a reader lock count for each
	  thread. This is needed since methods like ReleaseLock or 
	  UpgradeToWriterLock need to return a per-thread status in LockCookie.
	  Also added support for recursive writer-lock requests.

2004-03-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* ThreadAbortException.cs: use same HResult as MS.
	* Timer.cs: abort the running thread when disposing the Timer. This
	fixes NullRefs when finishing xsp.

2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* NativeOverlapped.cs: added 2 new internal fields.
	* Overlapped.cs: implemented, but it's not used.

	* ThreadPool.cs: implemented BindHandle.

2004-03-08  Zoltan Varga  <vargaz@freemail.hu>

	* Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski 
	(jaak@zd.com.pl). Fix finalization problems during appdomain unload.

2004-02-23  Jackson Harper <jackson@ximian.com>

	* LockCookie.cs: Add some fields for restoring locks.
	* ReaderWriterLock.cs: Implement
	* LockQueue.cs: New File - used for queueing thread locks in
	ReaderWriterLock.
	
2004-02-19  Jackson Harper <jackson@ximian.com>

	* Monitor.cs: Fix spelleng.
	
2004-02-09  Zoltan Varga  <vargaz@freemail.hu>

	* Thread.cs: Add fields added to unmanaged MonoThread here as well.
	Fixes random errors caused by memory corruption.

2004-02-06  Zoltan Varga  <vargaz@freemail.hu>

	* Thread.cs: Store the thread name in unmanaged memory, since the
	thread object is shared between appdomains.

2004-02-05  Sebastien Pouliot  <sebastien@ximian.com>

	* Thread.cs: Implemented CurrentPrincipal.

2004-01-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Thread.cs: delayed thread creation until Start is called. If we
	don't do that and Start() is not called, the thread is leaked. First
	step towards fixing bug #53078. 

2003-12-02  Dick Porter  <dick@ximian.com>

	* Thread.cs: Throw InvalidOperationException if Thread.Name is
	already set.

2003-12-01  Dick Porter  <dick@ximian.com>

	* Thread.cs: Implement CurrentCulture and CurrentUICulture

2003-11-12  Miguel de Icaza  <miguel@ximian.com>

	* Thread.cs: Add new VolatileRead/VolatileWrite methods from 1.1

2003-10-23  Lluis Sanchez Gual  <lluis@ximian.com>

	* Thread.cs: Added ResetDataStoreStatus and RestoreDataStoreStatus
	  methods. They are used in CrossAppDomainChannel to save and restore
	  thread's local data when switching between domains.

2003-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* ManualResetEvent.cs: added check for disposed.
	* Thread.cs: no need to init this field.

2003-10-01  Zoltan Varga  <vargaz@freemail.hu>

	* Thread.cs: Add locking to AllocateNamedDataSlot and 
	FreeNamedDataSlot.

Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <lupus@ximian.com>

	* Thread.cs: put all the fields at the start and add
	more fields needed by the runtime.

2003-08-14  Lluis Sanchez Gual  <lluis@ximian.com>

	* Thread.cs: SetData() method: use Hashtable.Contains to check
	  if a dataslot has been allocated (value could be null).

2003-07-23  Duncan Mak  <duncan@ximian.com>

	* WaitHandle.cs (CheckDisposed): This method is not in the public
	API, mark it as 'internal'.

2003-07-01  Dick Porter  <dick@ximian.com>

	* Thread.cs: Throw an exception if thread creation failed.
	(Better than just blowing up later.)

2003-06-27  Dietmar Maurer  <dietmar@ximian.com>

	* ThreadPool.cs: use async delegate invoke.

2003-06-25  Dick Porter  <dick@ximian.com>

	* WaitHandle.cs: Default handle value should be InvalidHandle, not
	Zero.

2003-06-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* ThreadPool.cs: correctly create a TimeSpan with provided the number of
	milliseconds.

	* WaitHandle.cs: fixes for WaitAny/All and TimeSpan.

2003-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* WaitHandle.cs: checks and exceptions.

2003-06-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* NativeEventCalls.cs: added CloseEvent_intenal.
	* WaitHandle.cs: call CloseEvent_internal when disposing.

2003-05-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* RegisteredWaitHandle.cs: check that the callback is not null before
	invoking.

	* ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
	#43963). Queue the item before setting the handle. If there's a timeout,
	avoid trying to Dequeue, getting the exception et al, just continue the
	loop.

Mon May 19 09:07:45 CEST 2003 Paolo Molaro <lupus@ximian.com>

	* Monitor.cs: removed test_owner, the check is already done in the
	icall.

Tue May 13 15:34:29 CEST 2003 Paolo Molaro <lupus@ximian.com>

	* Thread.cs: added missing field used by the runtime and
	a new field to support thread-static data.

2003-04-17  Pedro Mart�ez Juli� <yoros@wanadoo.es>

	* Timer.cs: Change the position of two lines because they were
	before the "if" that ensures the integrity. After this, the first of
	that two lines was producing a NullReferenceException.

2003-04-09  Dick Porter  <dick@ximian.com>

	* Thread.cs: Make sure a reference to the ThreadStart delegate is
	held.  There's no telling how long it will be before
	Thread.Start() is called, and GC might destroy the delegate.
	Thread() and Start() need to be rewritten so that the runtime
	creates the new thread when Start() is called, which will simplify
	the code a great deal.

2003-03-20  Miguel de Icaza  <miguel@ximian.com>

	* Thread.cs (CurrentCuluture): use the invaraint culture instead
	of "" for the current_culture setting.

2003-03-25  Zoltan Varga  <vargaz@freemail.hu>

	* Thread.cs: Fix visibility of ResetAbort().

2003-03-18  Dick Porter  <dick@ximian.com>

	* Thread.cs: Keep the thread state updated in all the places that
	require it.  (Suspend, Resume and Interrupt not handled yet)

2003-03-03  Lluis Sanchez Gual <lluis@ideary.com>

	* Thread.cs: Changed implementation of CurrentContext, adapted to the changes
	  in the runtime.

2003-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Thread.cs: implemented CurrentContext.

2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Thread.cs: made the thread_id for the current thread accesible through
	an internal property.  

2003-02-17  Dick Porter  <dick@ximian.com>

	* Thread.cs: Added the Start semaphore field to the class.  Update
	the thread state after Start() has returned, not before.

2003-02-13  Zoltan Varga  <vargaz@freemail.hu>

	* Thread.cs (Sleep): Timeout.Infinite is a value argument.

2003-02-11  Dick Porter  <dick@ximian.com>

	* Monitor.cs: Infinite wait is Infinite, not 0 ms

2003-02-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Thread.cs: fixed bug #37759.

2003-02-07  Patrik Torstensson

	* Timer.cs: Set the Background thread flag for the timer thread

2003-02-05  Patrik Torstensson

	* ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool. 

2003-02-04  Lluis Sanchez Gual <lluis@ideary.com>

	* ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.

Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <lupus@ximian.com>

	* Thread.cs: delay-init datastorehash.

2003-01-10  Patrik Torstensson  <totte@race-x-change.com>

	* ThreadPool.cs: Temporary removed the usage of monitor thread, implemented a 
                    model more equal to the MS one.

2002-12-10  Dick Porter  <dick@ximian.com>

	* Monitor.cs:
	* Thread.cs:
	* ThreadPool.cs:
	* Timer.cs:
	* WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
	ms, not Milliseconds.

2002-12-07  Martin Baulig  <martin@ximian.com>

	* Timer.cs: Make it actually work; now it no longer sets your
	application on fire if you use a zero periode and Timer.Change()
	actually works.

2002-11-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Timer.cs: implemented more stuff. It works now.

2002-10-25  Zoltan Varga  <vargaz@freemail.hu>

	* Thread.cs: Implement GetDomain() and GetDomainID().

2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* ThreadPool.cs: now the monitor thread is not sleeping and checking if
	more worker threads needed. It waits on _DataInQueue. If (and only if)
	there's data in the queue it checks if more worker threads needed and
	then sleeps 0.5s before waiting for queued data again.

2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* ThreadPool.cs: set IsThreadPoolThread before starting the worker.

2002-09-11  Dick Porter  <dick@ximian.com>

	* Mutex.cs: 
	* ManualResetEvent.cs: 
	* AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
	the private field

	* WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
	method

2002-09-03  Dick Porter  <dick@ximian.com>

	* Thread.cs: Added thread ID field

2002-08-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* WaitHandle.cs: IDisposable fixes.

2002-08-14  Dick Porter  <dick@ximian.com>

	* Thread.cs: Make CurrentUICulture act the same as CurrentCulture
	for now.

2002-08-12  Dietmar Maurer  <dietmar@ximian.com>

	* ThreadAbortException.cs: impl. ExceptionState property.

	* Thread.cs: moved all instance variables to the start of the
	class. added support for Thread::Abort()

2002-04-30  Dick Porter  <dick@ximian.com>

	* Thread.cs: If LocalDataStoreSlot already has data set, remove it
	before adding a new one.

	Use the Thread object destructor to tell the runtime to close the
	thread handle.

2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>

	* Interlocked.cs: made all methods icalls.

2002-04-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* IOCompletionCallback.cs: added attributes to the delegate
	(CLSCompliant(false) and Serializable).

2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
	* Thread.cs: Fixed IsThreadPoolThread to use a internal property instead of extending 
				 the threadstate enum.
	* ThreadPool.cs: Now using the internal Isthreadpoolthread property
	* ThreadState.cs: removed non-standard enum (ThreadPoolThread)

2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>

	* ThreadState.cs: Added enum for threadpool thread
	* Thread.cs: changed the set/clr_state to be internal (used from threadpool)
	* Thread.cs: Added IsThreadPoolThread
	* ThreadPool.cs: Implementation of QueueUserWorkItem

Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <lupus@ximian.com>

	* Thread.cs: implement CurrentCulture property needed by
	Convert.ChangeType() (used when compiling enums).

2002-01-23  Dick Porter  <dick@ximian.com>

	* ManualResetEvent.cs: 
	* AutoResetEvent.cs: Fixed DOS line endings

2002-01-22  Veronica De Santis <veron78@interfree.it>   
        
	* NativeEventCalls : Class that contains internal calls shared by Auto 
	  		     and Manual Reset Events
	* AutoResetEvents.cs : Added class AutoResetEvents and its implementation
	* ManualResetEvents.cs : Added class ManualResetEvents and its implementation

2002-01-16  Veronica De Santis <veron78@interfree.it>   
        
	* WaitHandle.cs : Renamed handle to os_handle and make it protected
	                  instead of private.
	* Mutex.cs : Write the System.Threading.Mutex methods ( constructors 
	             and the ReleaseMutex)

2002-01-15  Dick Porter  <dick@ximian.com>

	* WaitHandle.cs:
	* Thread.cs: Make the runtime's idea of infinite timeouts coincide
	with the class library's

2002-01-10  Dick Porter  <dick@ximian.com>

	* WaitHandle.cs: Added checks for too many handles and null
	handles in WaitAll() and WaitAny
	

2002-01-05  Ravi Pratap  <ravi@ximian.com>

	* AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
	decoration.

	* Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
	Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.

2001-12-11  Dick Porter  <dick@ximian.com>

	* WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
	internal calls.

2001-11-26  Dick Porter  <dick@ximian.com>

	* Thread.cs: DataSlot uses a single system TLS slot, and a
	hashtable per thread.  Some minor changes to reflect the new
	internal calls using the new IO library, and the newly-supported
	bool returns from internal calls.

	* Monitor.cs: Use bool returns from internal calls now they are
	supported by the runtime.  Coalesce enter with the try_enter
	internal call.

Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <lupus@ximian.com>

	* Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.

2001-10-03  Dick Porter  <dick@ximian.com>

	* Monitor.cs: Implemented all methods except the two Wait()
	methods that take boolean parameters

2001-09-28  Dick Porter  <dick@ximian.com>

	* Thread.cs: Implemented AllocateDataSlot(),
	AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
	GetNamedDataSlot(), SetData(), IsBackground.  Reworked Thread()
	and Start() to avoid a race condition. Added thread-safe state
	changing private operations.

	* Monitor.cs: Comment out the GetType() calls because it isn't implemented yet

2001-09-25  Dick Porter  <dick@ximian.com>

	* Thread.cs: Implement Join and timed Join, set correct state
	around Start, Join and Sleep calls, implement IsAlive and
	ThreadState properties.

	* ThreadState.cs (Threading): Added StopRequested,
	SuspendRequested, Suspended values

2001-09-23  Dick Porter  <dick@ximian.com>

	* Thread.cs: Implemented CurrentThread and Sleep (both versions)
	with internal calls, and Name.

2001-09-21  Dick Porter  <dick@ximian.com>

	* Thread.cs: Implement Thread(ThreadStart) constructor and Start()
	with an internal call

	* WaitHandle.cs: Close calls Dispose(false)

2001-09-13  Dick Porter  <dick@ximian.com>

	* ApartmentState.cs (Threading): Set the correct enum values

2001-09-13  Dick Porter  <dick@ximian.com>

	* ApartmentState.cs, AutoResetEvent.cs, IOCompletionCallback.cs,
	Interlocked.cs, LockCookie.cs, ManualResetEvent.cs, Monitor.cs,
	Mutex.cs, NativeOverlapped.cs, Overlapped.cs, ReaderWriterLock.cs,
	RegisteredWaitHandle.cs, SynchronizationLockException.cs,
	Thread.cs, ThreadAbortException.cs, ThreadInterruptedException.cs,
	ThreadPool.cs, ThreadStart.cs, ThreadStateException.cs,
	Timeout.cs, Timer.cs, TimerCallback.cs, WaitCallback.cs,
	WaitHandle.cs, WaitOrTimerCallback.cs: System.Threading class
	stubs.
	
2001-07-18  Michael Lambert <michaellambert@email.com>

	* ThreadPriority.cs, ThreadState.cs: Add.