This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Converts empty strings as optional values | |
| type MaybeConverter<'t>() = | |
| inherit JsonIsomorphism<'t option, string>() | |
| override __.Pickle v = TypeSafeEnum.toString v | |
| override __.UnPickle json = TypeSafeEnum.tryParse<'t> json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(frequency). | |
| -export([start/0,allocate/0,deallocate/1,stop/0]). | |
| -export([init/0]). | |
| -compile(export_all). | |
| %% Usage: | |
| %% SupervisorPid = spawn(frequency, super, []). | |
| %% frequency:run_clients(7, frequency). | |
| %% ... see clients working ... | |
| %% ... using observer:start() find and kill frequency:loop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define MAX_NUM 20000 | |
| int main() { | |
| void* array[MAX_NUM]; | |
| printf ("Started fresh...\n"); | |
| getchar(); |