summaryrefslogtreecommitdiff
path: root/redo/table_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/table_darwin.go')
-rw-r--r--redo/table_darwin.go14
1 files changed, 5 insertions, 9 deletions
diff --git a/redo/table_darwin.go b/redo/table_darwin.go
index 95344c1..c80dbdc 100644
--- a/redo/table_darwin.go
+++ b/redo/table_darwin.go
@@ -36,15 +36,11 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table {
func (t *table) Unlock() {
t.unlock()
- // there's a possibility that user actions can happen at this point, before the view is updated
- // alas, this is something we have to deal with, because Unlock() can be called from any thread
- go func() {
- Do(func() {
- t.RLock()
- defer t.RUnlock()
- C.tableUpdate(t._id)
- })
- }()
+ // TODO RACE CONDITION HERE
+ // not sure about this one...
+ t.RLock()
+ defer t.RUnlock()
+ C.tableUpdate(t._id)
}
//export goTableDataSource_getValue