gingerBill
033b46def8
Add mem.Allocator_Mode.Query_Features, mem.Allocator_Mode_Set, mem.query_features`
2020-08-16 22:07:40 +01:00
gingerBill
1f571f48e5
Add mem.Tracking_Allocator
2020-08-16 21:29:14 +01:00
gingerBill
ec178825ec
Add more sort.compare_* procedures
2020-08-16 12:40:28 +01:00
gingerBill
6158a49618
Make sync.atomic_* operations use when statements instead of switch; Make #panic diverging
2020-08-16 12:34:12 +01:00
gingerBill
674aeffee4
Fix typo
2020-08-12 19:15:47 +01:00
gingerBill
546759bdef
Fix multi_logger_proc to check for lowest_level
2020-08-12 19:01:25 +01:00
gingerBill
fa903fb4df
Fix #674
2020-08-06 00:09:36 +01:00
gingerBill
5164d1d866
Fix named results but in ir.cpp
2020-08-05 23:43:23 +01:00
gingerBill
b6e33a1e64
Ensure add_type_info_type and add_min_dep_type_info are consistent
2020-08-05 23:36:31 +01:00
gingerBill
f5248a8d9d
Fix #705
2020-08-05 23:33:35 +01:00
gingerBill
74ed779616
Fix #702
2020-08-05 23:14:11 +01:00
gingerBill
9f24188ec8
Fix #708
2020-08-05 22:51:24 +01:00
gingerBill
5551404be4
Fix gb_alloc_str_len
2020-08-05 22:32:27 +01:00
gingerBill
9fd35776fd
Fix typos in math.odin
2020-08-04 14:40:11 +01:00
gingerBill
3385fcecb0
Fix typo
2020-08-04 14:31:14 +01:00
gingerBill
804b96a985
Remove unused entities
2020-08-02 15:11:21 +01:00
gingerBill
9cc20954a3
Add sys/windows/synchronization.odin
2020-08-02 15:07:52 +01:00
gingerBill
91ff3e5bca
Add sync/channel_*.odin files
2020-08-02 15:05:04 +01:00
gingerBill
6d032e6f1a
Update package sync
2020-08-02 15:01:17 +01:00
gingerBill
16abfd56e8
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-08-02 14:59:51 +01:00
gingerBill
d1d5f61230
Add intrinsics.alloca
2020-08-02 14:59:39 +01:00
gingerBill
5b7e1cd6f6
Update LICENSE
2020-08-01 11:35:56 +01:00
gingerBill
cbfe3571ab
Merge pull request #693 from powerc9000/patch-2
...
Fix pthread_t on Macos.
2020-07-22 22:28:38 +01:00
gingerBill
b04bc21ec6
Merge pull request #704 from oskarnp/log_thread_id
...
Add .Thread_Id option to log package
2020-07-22 22:27:53 +01:00
gingerBill
2945feecde
Merge pull request #703 from oskarnp/darwin_thread_id
...
Implement os.current_thread_id() for Darwin (assumes OSX 10.6 / iOS 3…
2020-07-22 22:27:02 +01:00
Oskar Nordquist
36cac87387
Add .Thread_Id option to log package
2020-07-22 17:42:01 +02:00
Oskar Nordquist
a7e38dc063
Implement os.current_thread_id() for Darwin (assumes OSX 10.6 / iOS 3.2 and later)
2020-07-22 17:38:13 +02:00
gingerBill
0aaab84938
Allow multiple -define flags
2020-07-16 20:59:03 +01:00
gingerBill
3a1492fc99
Add sync.Wait_Group
2020-07-15 00:25:37 +01:00
gingerBill
ca818fb857
Remove comments containing unicode characters from tokenizer
2020-07-14 23:51:46 +01:00
gingerBill
13e5cb8cc4
Fix #691 and Fix #692
2020-07-14 23:50:09 +01:00
gingerBill
7ae54ae3b4
Add -no-dynamic-literals to disallow dynamic array and map literals
2020-07-14 23:01:34 +01:00
gingerBill
b2beb9512f
Add thread.join_multiple
2020-07-14 21:08:04 +01:00
gingerBill
96ad6d2084
Improve sync.Channel behaviour
2020-07-14 18:43:50 +01:00
gingerBill
86f1574f78
Fix #696
2020-07-14 16:43:23 +01:00
gingerBill
6565a49e34
Remove fmt from sync/channel.odin
2020-07-14 16:39:47 +01:00
gingerBill
ce85b73eca
Add sync.Once
2020-07-14 16:38:54 +01:00
gingerBill
fc65aee307
Update sync.Channel
2020-07-14 16:37:29 +01:00
gingerBill
ede135a08f
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-07-14 16:36:47 +01:00
gingerBill
c18fc2da9f
Remove some dead code
2020-07-14 16:36:33 +01:00
gingerBill
c8a3937ea0
Merge pull request #695 from jharler/master
...
Added "sep" parameter to logging procs
2020-07-13 13:28:30 +01:00
jharler
f9a6777e3a
Added "sep" parameter to logging procs
2020-07-13 08:22:41 -04:00
Clay Murray
83eabe2140
Fix pthread_t on Macos.
...
From some testing with directly using C code, pthread_t on macos is 8 bytes.
This is my test code:
```
#include <assert.h>
#include <stdio.h>
#include <pthread.h>
void* PosixThreadMainRoutine(void* data)
{
// Do some work here.
for (int i = 0; i < 2000000000; i++) {
}
return NULL;
}
pthread_t LaunchThread()
{
// Create the thread using POSIX routines.
pthread_attr_t attr;
pthread_t posixThreadID;
int returnVal;
returnVal = pthread_attr_init(&attr);
assert(!returnVal);
returnVal = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
assert(!returnVal);
int threadError = pthread_create(&posixThreadID, &attr, &PosixThreadMainRoutine, NULL);
returnVal = pthread_attr_destroy(&attr);
assert(!returnVal);
if (threadError != 0)
{
// Report an error.
}
return posixThreadID;
}
int main() {
pthread_t t = LaunchThread();
void ** ret;
printf("%d, %d\n", sizeof(t), sizeof(pthread_t));
int val = pthread_join(t, ret);
printf("%d", val);
return 0;
}
```
running this on macos reports `8, 8`.
Then I made the proposed changes and errors I was having with threads completely went away.
2020-07-11 18:22:56 -06:00
gingerBill
c4067372dd
Fix double declaration
2020-07-10 22:28:48 +01:00
gingerBill
b4e976364a
Add path_unix.odin
2020-07-10 08:42:59 +01:00
gingerBill
642afa4f88
Fix new package path
2020-07-10 08:42:22 +01:00
gingerBill
f65fa0e4a6
Merge pull request #339 from dotbmp/master
...
"core:path" Path library and "core:strings" `split` Utilities
2020-07-10 08:25:24 +01:00
gingerBill
65b9dbe13f
Clean-up OS constants; Clean-up procs_wasm32.odin
2020-07-09 17:21:40 +01:00
gingerBill
cb52f6986a
Fix Addressing_OptionalOk selector expression rules for struct field variables
2020-07-08 23:39:49 +01:00
gingerBill
94ba182691
Add sync.Benaphore
2020-07-08 23:16:54 +01:00