Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #146 (closed task: fixed)

Opened 17 years ago

Last modified 17 years ago

Add fixed locks package

Reported by: larsivi Assigned to: jcomellas
Priority: blocker Milestone: 0.96 Beta 2
Component: Tango Version:
Keywords: Cc:

Change History

12/18/06 21:26:59 changed by kris

Juan: there's currently a slot in the util package for this, which may or may not be an appropriate place for it. Right now the folder is called 'locks' but it might be better renamed to 'mutex' or something else? What say you?

12/22/06 20:54:54 changed by larsivi

  • milestone changed from 0.9 to 0.95 Alpha1.

12/22/06 20:55:38 changed by larsivi

  • type changed from defect to task.

I may add that the package should be finished, but it isn't fully tested due to a codegen bug in the compiler.

01/09/07 11:45:10 changed by larsivi

01/28/07 02:15:13 changed by kris

  • priority changed from major to blocker.

codegen bug is fixed ... let's get this into the library

01/31/07 10:24:35 changed by larsivi

Does not compile on linux

larsivi@larsivi-laptop:~/code/d/tango/trunk$ bud -op example/locks/condition.d
example/locks/condition.d(140): Error: no property 'allReady' for type 'Context'
example/locks/condition.d(140): Error: no property 'wait' for type 'int'
example/locks/condition.d(140): Error: function expected before (), not 1 of type int
example/locks/condition.d(144): Error: no property 'mutex' for type 'Context'
example/locks/condition.d(144): Error: no property 'acquire' for type 'int'
example/locks/condition.d(144): Error: function expected before (), not 1 of type int
example/locks/condition.d(148): Error: no property 'queue' for type 'Context'
example/locks/condition.d(148): Error: no property 'count' for type 'int'
example/locks/condition.d(148): Error: no property 'queue' for type 'Context'
example/locks/condition.d(148): Error: no property 'length' for type 'int'
example/locks/condition.d(151): Error: no property 'queue' for type 'Context'
example/locks/condition.d(151): Error: no property 'isFull' for type 'int'
example/locks/condition.d(151): Error: function expected before (), not 1 of type int
example/locks/condition.d(151): Error: no property 'consumerCount' for type 'Context'
example/locks/condition.d(154): Error: no property 'canProduce' for type 'Context'
example/locks/condition.d(154): Error: no property 'wait' for type 'int'
example/locks/condition.d(154): Error: no property 'mutex' for type 'Context'
example/locks/condition.d(154): Error: function expected before (), not 1 of type int
example/locks/condition.d(157): Error: no property 'consumerCount' for type 'Context'
example/locks/condition.d(160): Error: no property 'queue' for type 'Context'
example/locks/condition.d(160): Error: no property 'put' for type 'int'
example/locks/condition.d(160): Error: no property 'rand' for type 'Context'
example/locks/condition.d(160): Error: no property 'get' for type 'int'
example/locks/condition.d(160): Error: no property 'queue' for type 'Context'
example/locks/condition.d(160): Error: no property 'length' for type 'int'
example/locks/condition.d(160): Error: no property 'queue' for type 'Context'
example/locks/condition.d(160): Error: no property 'count' for type 'int'
example/locks/condition.d(160): Error: function expected before (), not 1 of type int
example/locks/condition.d(160): Error: function expected before (), not 1 of type int
example/locks/condition.d(163): Error: no property 'queue' for type 'Context'
example/locks/condition.d(163): Error: no property 'count' for type 'int'
example/locks/condition.d(163): Error: no property 'queue' for type 'Context'
example/locks/condition.d(163): Error: no property 'producerCount' for type 'Context'
example/locks/condition.d(163): Error: no property 'consumerCount' for type 'Context'
example/locks/condition.d(168): Error: no property 'canConsume' for type 'Context'
example/locks/condition.d(168): Error: no property 'notifyOne' for type 'int'
example/locks/condition.d(168): Error: function expected before (), not 1 of type int
example/locks/condition.d(178): Error: no property 'mutex' for type 'Context'
example/locks/condition.d(178): Error: no property 'release' for type 'int'
example/locks/condition.d(178): Error: function expected before (), not 1 of type int
example/locks/condition.d(183): Error: no property 'mutex' for type 'Context'
example/locks/condition.d(183): Error: no property 'acquire' for type 'int'
example/locks/condition.d(183): Error: function expected before (), not 1 of type int
example/locks/condition.d(189): Error: no property 'producerCount' for type 'Context'
example/locks/condition.d(189): Error: constant 1 is not an lvalue
example/locks/condition.d(191): Error: no property 'producerCount' for type 'Context'
example/locks/condition.d(191): Error: no property 'consumerCount' for type 'Context'
example/locks/condition.d(196): Error: no property 'mutex' for type 'Context'
example/locks/condition.d(196): Error: no property 'release' for type 'int'
example/locks/condition.d(196): Error: function expected before (), not 1 of type int

02/03/07 15:01:48 changed by larsivi

  • milestone changed from 0.95 Beta1 to 0.96 Beta 2.

02/22/07 22:54:25 changed by jcomellas

  • status changed from new to closed.
  • resolution set to fixed.

The package has already been committed to SVN. There are now the following classes available: Mutex, TimedMutex?, ScopedMutex?, Semaphore, Condition, Barrier, ReadWriteMutex?, ScopedReadMutex?, ScopedWriteMutex?.